fix(reactions): cancel button collapses entire emoji picker #71
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/reaction-picker-cancel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
xbutton usedhx-target="this", replacing only itself with+while the emoji buttons stayed rendered. Clicking the new+opened another picker nested inside the leftover row, which the user could repeat to stack pickers indefinitely.picker-{id}) and pointed the cancel button at it viahx-target="#picker-{id}" hx-swap="outerHTML", so cancel collapses the whole picker back to a single+button.Test plan
+, then clickx- picker should collapse to a single+(no leftover emoji row, no stacking).The picker's close (x) button used hx-target="this" hx-swap="outerHTML", so cancel only replaced the x with the + button while leaving every emoji button in the picker still rendered. Clicking the new + opened another picker nested inside the leftover row, which the user could repeat to stack pickers indefinitely. Give the picker wrapper a stable id (picker-{id}) and target it from the cancel button so the whole picker collapses back to a single + button. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>