set value not works with format options
See original GitHub issueI create a noUiSlider with format option, when try to update the value of the noUiSlider using noUiSlider.set
method , the noUiSlider always back to start
value passed initially, so when i put the break point on the to
function , the value argument is always the value of start option.
format: {
to: function (value) {
// the value is always the start option value
return ~~value;
},
from: function (value) {
return ""
}
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
react-hook-form's setValue method is not working if input is in ...
If I use useForm({defaultValues: {name: prop.value}}) , the default value is only set at the first time, I have to use setValue to...
Read more >Paste Special option is missing or not working in Microsoft Office
If your Paste Special option is missing, look here. Paste Special allows you to paste using the formatting of your choice.
Read more >useForm - setValue - React Hook Form
This function allows you to dynamically set the value of a registered field and have the options to validate and update the form...
Read more ><input type="number"> - HTML: HyperText Markup Language
Any values in the list that are not compatible with the type are not included in the suggested options. The values provided are...
Read more >Excel conditional formatting formulas based on another cell
How to fix Excel conditional formatting not working ... options such as font style, pattern color and fill effects to set up the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Your
from
returns an empty string, removing your input.Cast to a number instead:
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.