blockly-samples icon indicating copy to clipboard operation
blockly-samples copied to clipboard

Slider fields doesn't auto-update when changing the inline editor after sliding the slider knob

Open BenHenning opened this issue 7 months ago • 0 comments

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

  1. Open the field-sider test playground (locally or on https://google.github.io/blockly-samples/plugins/field-slider/test/index.html).
  2. Add a block with a number field.
  3. Click on the field to open the slider.
  4. Click on the text editor and change the numeric value.
  5. Observe the slider automatically syncs.
  6. Click to drag and move the slider.
  7. Click again on the text editor and change the numeric value.
  8. Observe that the slider no longer syncs.

Stack trace


Screenshots

https://github.com/user-attachments/assets/487635ae-9861-4859-bb58-8aaba40fc8d0

BenHenning avatar May 14 '25 21:05 BenHenning