fluentui
fluentui copied to clipboard
[Feature]: Allow Dropdown and ComboBox Option value attribute to be number as well
Library
React Components / v9 (@fluentui/react-components)
Describe the feature that you would like added
Hi,
Currenty the value attribute of Option element in Dropdown allows only string value so the ask is to allow it to accept number (integer) values as well. This will be helpful in scenarios where dropdown values are being used to showcase lookup field values where Text property hold the Title value of lookup field and Value property holds the ID of the lookup field as SharePoint returns Id as integer. in V8 key property of IDropdownOption used to allow both string and number values.
Have you discussed this feature with our team
No response
Additional context
No response
Validations
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Priority
High
This issue has not had activity for over 180 days! We're adding Soft close label and will close it soon for house-keeping purposes. Still require assistance? Please add comment - "keep open".
keep open
This issue has not had activity for over 180 days! We're adding Soft close label and will close it soon for house-keeping purposes. Still require assistance? Please add comment - "keep open".
keep open
This issue has not had activity for over 180 days! We're adding Soft close label and will close it soon for house-keeping purposes. Still require assistance? Please add comment - "keep open".
Hey @HarminderSethi, that feature is needed but unfortunately it's a breaking change. That could be addressed in a future major version.