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

[Feat]: sp-number-field repopulate field after deletion #4109

Open
1 task done
cdvu1 opened this issue Mar 1, 2024 · 1 comment
Open
1 task done

[Feat]: sp-number-field repopulate field after deletion #4109

cdvu1 opened this issue Mar 1, 2024 · 1 comment
Labels
enhancement New feature or request triage An issue needing triage

Comments

@cdvu1
Copy link
Collaborator

cdvu1 commented Mar 1, 2024

Code of conduct

  • I agree to follow this project's 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

@cdvu1 cdvu1 added enhancement New feature or request triage An issue needing triage labels Mar 1, 2024
@Westbrook
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage An issue needing triage
Projects
None yet
Development

No branches or pull requests

2 participants