RaneControl block triggers onChange event during mouseMove event when focused in safari #34965
Labels
[Feature] UI Components
Impacts or related to the UI component system
Needs Testing
Needs further testing to be confirmed.
[Package] Components
/packages/components
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
Description
When working in safari browser (desktop), clicking the arrows within the RangeControl component will correctly trigger an onChange event, however subsequent mouseMove events above said RangeControl arrow elements will continue to trigger onChange events.
It looks like the RangeControl component ultimate renders an input of type number. I've looked and it doesn't seem that this is default behavior on Safari.
Step-by-step reproduction instructions
Add any block that either uses a RangeControl component within its edit function or implements the component within the block's settings inspector. In my testing I've used the
core/spacer
block .In Safari, manipulate the
Height in Pixels
within the Block tab in the settings panel by clicking the arrows to the right of the number within the input.Observe the attributes are updated successfully
Move the mouse up and down while remaining in the dimensions of the two arrows.
Observe the attributes are continued to change without clicking anything.
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: