mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 17:53:55 +08:00
Follow-up to #41442. Clicking the pill that already owns the open property picker now toggles the dropdown shut, instead of closing and immediately reopening it. The component tracks the active trigger and drives its open-state off the menu's `onClose`, so the state can't go stale when float-kit closes on an outside click; a `pointerdown` on the owning pill is left to the pill's own click handler. A short timer on the pill click distinguishes a second click (open) from a double-click (edit), and the dropdown now anchors to the pill's left edge rather than the drill button. The field also shows a text cursor across its whole width so the empty area reads as editable. |
||
|---|---|---|
| .. | ||
| variable-input.scss | ||
| variables-manager.scss | ||