Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot update max value after initial render #87

Open
cmackenz opened this issue Apr 23, 2020 · 1 comment
Open

Cannot update max value after initial render #87

cmackenz opened this issue Apr 23, 2020 · 1 comment

Comments

@cmackenz
Copy link

cmackenz commented Apr 23, 2020

Version: 1.1.0

When updating the max value I would expect the slider to respond to this new value, but unfortunately it does not.

The only way I have found to update this value in realtime is to force rerender the component.

{{#if sliderReady}}
  {{range-slider 
    start=start
    min=1
    max=calculatedTotal  <-- When updating `calculateTotal` the slider does update to reflect the new value
    connect=connect
    tooltips=true
    step=1
    on-change="sliderChanged"
  }}
{{/if}}

Basically, I observe the calculatedTotal change and then toggle the sliderReady value from true to false, and then back to true. This will rerender the range-slider with the udpated max value.

@rreckonerr
Copy link

The same issue affects "direction" option!

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

No branches or pull requests

2 participants