Browse Source
Three things from the re-review, two of them introduced by the commit that turned the popup's header and footer into options. **The Enter guard never fired.** It asked the autocomplete trigger for its active option during keyup, but the trigger clears that inside the same keydown - it calls _selectViaInteraction and then _resetActiveItem, which with no autoActiveFirstOption sets the active index to -1. So the guard always fell through, and one Enter on a highlighted row opened it and then navigated away from it. That is worse than the behaviour before, where the click handler simply never ran. The row that acts now records it through rowSelectedByUser, which does not depend on the order the two handlers run in, and typing clears the flag since a pointer selection leaves no keyup behind it. **The header's own padding was overridden.** Under one ancestor chain, `.mat-mdc-option.tb-search-popup-group-header` and `.mat-mdc-option:not(.mat-mdc-option-multiple)` both weigh (0,4,0), and the second was declared later, so every section header shipped 8px taller than the 4px the comment above it documents - with up to six of them in a 424px panel. The catch-all could not match the old span header; it matches an option. Each row kind now carries its own class and the shared parts sit in one rule, so nothing here rests on source order. The footer had the same collision and only won by being declared last. **The hover-scrollbar block is a mixin.** This branch added a second byte-identical copy of it. Both now call tb-iot-hub-hover-scrollbar from the partial they already import. The mixin records what is deliberately NOT settled here: whether these panels should keep a thumb that is invisible until hover, and whether to add the standardised scrollbar-width / scrollbar-color that Firefox reads, is a question for the IoT Hub filter UI as a whole - iot-hub-browse and dashboard-widget-select carry the same treatment and predate this branch.pull/16148/head
6 changed files with 91 additions and 78 deletions
Loading…
Reference in new issue