blockly-samples
blockly-samples copied to clipboard
Slider fields doesn't auto-update when changing the inline editor after sliding the slider knob
Check for duplicates
- [x] I have searched for similar issues before opening a new one.
Component
field-slider
Description
When using the field slider, attempting to change the field value via the inline text editor after moving the slider no longer results in automatic synchronizing between the two (this only works before moving the slider for the first time).
This issue repros for both v11 and v12.
Reproduction steps
- Open the
field-sidertest playground (locally or on https://google.github.io/blockly-samples/plugins/field-slider/test/index.html). - Add a block with a number field.
- Click on the field to open the slider.
- Click on the text editor and change the numeric value.
- Observe the slider automatically syncs.
- Click to drag and move the slider.
- Click again on the text editor and change the numeric value.
- Observe that the slider no longer syncs.
Stack trace
Screenshots
https://github.com/user-attachments/assets/487635ae-9861-4859-bb58-8aaba40fc8d0