anvilistas / anvil-extras

Other
84 stars 25 forks source link

Modifying the slider connect property in code doesn't change it in the UI. #538

Closed morod3v closed 5 months ago

morod3v commented 5 months ago

Describe the bug When the connect property of a slider component is modified in the code, the change is not made in the UI.

Version Published version

To Reproduce Steps to reproduce the behaviour :

  1. Integrate a slider component in any form
  2. Set the connect property to any initial state in the designer
  3. In the code, create a function that modifies the connect property of the slider component (for instance a button click event)
  4. When calling the function, the slider is not modified as expected

Expected behavior The colors of the slider should change based on the connect properties defined in the code.

Additional context It does work from the designer: when modifying the connect property in the designer.

I am considering making a PR for this issue I don't know what is a PR...