mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 17:53:55 +08:00
Currently when you search for a tag in the composer, it requires two arrow key presses to reach the second option, even though the first option is already highlighted. This is because the create option (first row) is pre-highlighted... so arrow down in select-kit calls `this.selectKit.highlightFirst()` and you end up re-highlighting it on the first arrow press. This checks if a row is pre-highlighted to avoid `highlightFirst` and instead fires `highlightNext` (and the opposite for up arrow cases) |
||
|---|---|---|
| .. | ||
| assign.rb | ||