mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 10:15:46 +00:00
* Keep the host settings action out of the host row's pressable
The gear sat in the row's trailing slot, which ComboboxItem renders inside its
own pressable, so the row was a button containing a button. HTML forbids that:
React aborts the press handling, which is why the first click on the host
picker produced a hydration error and only the second one opened anything.
ComboboxItem gains a trailingAction slot that renders beside the row's
pressable instead of inside it. The split row carries the hover and active
background, the pressable keeps the row's padding, and the action column sits
outside the click target, so the gear reaches host settings on the first click.
(cherry picked from commit ccff20dae7)
* fix(sidebar): let Enter activate the focused host gear
Combobox Enter handling was taking precedence over the focused trailing button. Leave Enter to that control so keyboard and pointer input open the same host Overview. Cover both paths through the desktop sidebar in Playwright.
* fix(sidebar): give the host gear priority over Enter shortcuts
Let the browser activate a focused host gear while the combobox keeps Enter out of the app shortcut dispatcher. Make the gear button fill its column so the highlighted edge opens settings too.
---------
Co-authored-by: ShalokShalom <shalokshalom@protonmail.ch>