Comfy-Org / Comfy-Org/ComfyUI_frontend
[Bug]: Clicking textarea DOM widget triggers selection update causing toolbar remount animation
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 699
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 490
Description
## Prerequisites
- [x] I am running the latest version of ComfyUI
- [x] I have searched existing issues to make sure this isn't a duplicate
- [x] I have tested with all custom nodes disabled
## What happened?
When clicking on a textarea DOM widget on a node, it triggers a selection update which in turn re-triggers the toolbar mounting animation. This creates an unwanted visual effect where the toolbar appears to animate/remount when the user is simply trying to interact with the textarea.
## Steps to Reproduce
1. Load a workflow with a node that has a textarea DOM widget
2. Click on the textarea to focus it
3. Observe that the toolbar remounts with animation
4. The animation is triggered unnecessarily
## How is this affecting you?
Visual/UI issue only
## ComfyUI Frontend Version
Latest
## Browser
Chrome/Chromium
## Additional Context
This appears to be a UI state management issue where the selection system is overly sensitive to DOM widget interactions. The textarea click event is propagating or triggering selection change events that cause the toolbar to re-render with its mount animation. The expected behavior would be that clicking into a textarea should not trigger any toolbar state changes.
https://github.com/user-attachments/assets/ac57025c-9446-47b5-bc95-e14b31476cf2
┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-4953-Bug-Clicking-textarea-DOM-widget-triggers-selection-update-causing-toolbar-remount--24e6d73d3650813da554d2b6a12d1eaf) by [Unito](https://www.unito.io)
Contributor guide
Assessment
This issue has not been assessed yet.