Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "Allow empty string as valid value for text property of ComboBox",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"comment": "Allow empty string as valid value for text property of ComboBox",
"comment": "fix: Allow empty string as valid value for text property of ComboBox.",

"packageName": "@fluentui/react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion packages/react/src/components/ComboBox/ComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ class ComboBoxInternal extends React.Component<IComboBoxInternalProps, IComboBox
// unless we are open and have a valid current pending index
if (
!(isOpen && currentPendingIndexValid) &&
text &&
(text || text === '') &&
(currentPendingValue === null || currentPendingValue === undefined)
) {
return text;
Expand Down