Semantic-Org / Semantic-UI-React

The official Semantic-UI-React integration
https://react.semantic-ui.com
MIT License
13.19k stars 4.04k forks source link

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

Open felipenmoura opened 4 months ago

felipenmoura commented 4 months ago

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 commented 2 months ago

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