Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

dcc.Input with type="number" unable to clear #513

Closed
oliverbrace opened this issue Apr 5, 2019 · 1 comment
Closed

dcc.Input with type="number" unable to clear #513

oliverbrace opened this issue Apr 5, 2019 · 1 comment
Assignees
Labels
dash-type-bug Something isn't working as intended

Comments

@oliverbrace
Copy link

When one has dcc.Input with type="number" it is not possible to clear what is inside the input like with dcc.Input with type="text". I assume this is because deleting it so nothing is contained sets it to "" which is not in the list of allowed values for numbers.
However this results in placeholder text being irritativable in "input type number" once text has been inserted.

I also have input boxes, which when blank, uses a default value within the code. Currently I have to create a button and a callback which clears the input box, however .

HTML input type number does allow for blank values (and the letter e), however something is then changing it to be 0.

I feel that the functionality should be the same as hmtl.input and allow for "" to be an accepted value.

@alexcjohnson
Copy link
Collaborator

related: #455

@Marc-Andre-Rivet Marc-Andre-Rivet added this to the Dash v1.1.0 milestone Jul 8, 2019
@byronz byronz self-assigned this Jul 9, 2019
byronz pushed a commit that referenced this issue Jul 10, 2019
@byronz byronz mentioned this issue Jul 10, 2019
@Marc-Andre-Rivet Marc-Andre-Rivet added the dash-type-bug Something isn't working as intended label Jul 12, 2019
@Marc-Andre-Rivet Marc-Andre-Rivet modified the milestone: Dash v1.1.0 Jul 15, 2019
byronz added a commit that referenced this issue Aug 5, 2019
* 🐛 fixes both #455 and #513
@byronz byronz closed this as completed Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dash-type-bug Something isn't working as intended
Projects
None yet
Development

No branches or pull requests

4 participants