branch | svghmi |
changeset 3131 | 2d750e38a4c6 |
parent 3107 | ee0704cc6dc8 |
child 3133 | 450cd01324ad |
--- a/svghmi/widget_dropdown.ysl2 Tue Feb 09 07:56:25 2021 +0100 +++ b/svghmi/widget_dropdown.ysl2 Tue Feb 09 07:57:14 2021 +0100 @@ -295,6 +295,7 @@ b.height.baseVal.value = m.height; } highlight_selection(){ + if(this.last_selection == undefined) return; let highlighted_row = this.last_selection - this.menu_offset; if(highlighted_row < 0) return; let spans = this.text_elt.children;