fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Feature]: Allow Dropdown and ComboBox Option value attribute to be number as well

Open HarminderSethi opened this issue 1 year ago • 2 comments

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

HarminderSethi avatar Feb 19 '24 12:02 HarminderSethi

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

ValentinaKozlova avatar Aug 19 '24 06:08 ValentinaKozlova

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

ValentinaKozlova avatar Feb 17 '25 11:02 ValentinaKozlova

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.

ValentinaKozlova avatar Aug 29 '25 09:08 ValentinaKozlova