mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
feat: bring node to front when clicking on any widget (#7202)
## Summary - Adds a capture-phase pointerdown handler to NodeWidgets that calls `bringNodeToFront` whenever any widget is clicked - Improves UX by ensuring the interacted node is always visible on top, without requiring the node itself to be selected fix https://github.com/Comfy-Org/ComfyUI_frontend/issues/7131 ## Before https://github.com/user-attachments/assets/c2c2ff0e-6e5a-49f2-bf2e-333950559ada ## After https://github.com/user-attachments/assets/fc3db735-20eb-40b5-9101-278badc4698e ## Test plan - [ ] Click on any widget (button, dropdown, input, etc.) within a Vue node - [ ] Verify the node moves to the front (highest z-index) when the widget is clicked - [ ] Verify existing widget functionality is unaffected --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
committed by
GitHub
parent
e7756eb6dd
commit
7c830a2f0b
Binary file not shown.
|
Before Width: | Height: | Size: 129 KiB After Width: | Height: | Size: 129 KiB |
Reference in New Issue
Block a user