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

AllowAdditions in dropdown should allow the definition of a TYPE for the input #4466

Open
felipenmoura opened this issue Feb 26, 2024 · 1 comment

Comments

@felipenmoura
Copy link

felipenmoura commented Feb 26, 2024

Bug Report

Steps

Add a multiple Dropdown component to an element.
Set allowAdditions to true (and its other required props).
Set type="number" to it.
Users can enter letters.

Expected Result

If the type of the input is number or date, for example, the allowAdditions feature should follow that.
I imagine it should also follow other rules like placeholder, pattern, etc.

Actually, if you inspect the add input and change its type to "number", it works regularly. So, I believe it's just a matter of copying some params down to the input.

Actual Result

An input of type text appears.

Version

^2.5.0

@felipenmoura
Copy link
Author

Any opinion on this?
I believe this is a rather important subject regarding accessibility and validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant