Closed eoghanmurray closed 2 years ago
I wonder whether options.pips
should be given the same treatment; in case there's been any customisation to the pips outside of the knowledge of the slider?
Update: have made that change in next commit
Thanks for submitting this PR. I get the reason for this change, but making this change would mean the tooltips and pips would no longer be updated to match other updated properties.
I'd recommend that you call mergeTooltips
(from the example) again after updateOptions
.
making this change would mean the tooltips and pips would no longer be updated to match other updated properties
Did I break something? The intention was to maintain all existing methods of updating?
With these changes, updating range
is no longer reflected in the new pips.
ah
Would it be a good idea to build up a list of dependencies for the tooltips?
E.g. if margin
changes don't update the tooltips, whereas do so if range
is passed in?
updateOptions({margin: 60})
ref: https://refreshless.com/nouislider/examples/#section-merging-tooltips