Skip to content

Fire input and change event on set for color input - #230

Merged
route merged 2 commits into
rubycdp:mainfrom
asilano:dispatch-events-on-set-color-input
Aug 24, 2026
Merged

Fire input and change event on set for color input#230
route merged 2 commits into
rubycdp:mainfrom
asilano:dispatch-events-on-set-color-input

Conversation

@asilano

@asilano asilano commented Apr 17, 2023

Copy link
Copy Markdown
Contributor

Since a color input has to have its value set directly via javascript (presumably because of the difficulty of interacting with the browser's colour picker), the change and input events don't automatically happen. This PR fires them manually.

Fixes #229

@route

route commented Apr 3, 2026

Copy link
Copy Markdown
Member

looks like tests are failing

Since a color input has to have its value set directly via javascript
(presumably because of the difficulty of interacting with the browser's
colour picker), the `change` and `input` events don't automatically
happen. This PR fires them manually.

Fixes rubycdp#229
@route
route force-pushed the dispatch-events-on-set-color-input branch from 72a8548 to d0b9878 Compare August 24, 2026 14:22
@route
route merged commit 41dbd80 into rubycdp:main Aug 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setting a color input doesn't fire the change or input events

2 participants