You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, removing the number in the number field leaves the number field blank. It would be nice if the number field could repopulate to either the previous value, or the default value (ex. 0).
Mockups or screenshots
No response
Implementation notes or ideas
No response
The text was updated successfully, but these errors were encountered:
0 and undefined are highly different values both in javascript as well as within the context of a working application. Where there to be a "default after deleting" how would you expect a user to inform the application that undefined was the correct value?
Hello @cdvu1. I discussed the idea of having a default-value for the number-field component with the team. We felt that since the number-field component is a controllable by the consuming application, having a reset to default-valuebehaviour can be easily created by listening to the @change event on the number-field component. I have added an example of the same in our doc site in this PR. Let me know if this helps :)
Code of conduct
Impacted component(s)
sp-number-field
Description of the requested feature
Currently, removing the number in the number field leaves the number field blank. It would be nice if the number field could repopulate to either the previous value, or the default value (ex. 0).
Mockups or screenshots
No response
Implementation notes or ideas
No response
The text was updated successfully, but these errors were encountered: