diff --git a/change/@fluentui-react-c04deae4-a13e-45a0-8a98-b7c3f4ca4a5b.json b/change/@fluentui-react-c04deae4-a13e-45a0-8a98-b7c3f4ca4a5b.json new file mode 100644 index 00000000000000..ebaab4012d505d --- /dev/null +++ b/change/@fluentui-react-c04deae4-a13e-45a0-8a98-b7c3f4ca4a5b.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "Fix: Fix issue with ComboBox not accepting IME input in allowFreeform (revert PR #26931)", + "packageName": "@fluentui/react", + "email": "mgodbolt@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/packages/react/src/components/Autofill/Autofill.tsx b/packages/react/src/components/Autofill/Autofill.tsx index f4b4978e5b54c8..87a2cdd6f84705 100644 --- a/packages/react/src/components/Autofill/Autofill.tsx +++ b/packages/react/src/components/Autofill/Autofill.tsx @@ -326,16 +326,12 @@ export class Autofill extends React.Component im } // eslint-disable-next-line deprecation/deprecation - const { onInputChange, onInputValueChange, updateValueInWillReceiveProps } = this.props; + const { onInputChange, onInputValueChange } = this.props; if (onInputChange) { newValue = onInputChange?.(newValue, composing) || ''; } - // if value is controlled in updateValueInWillReceiveProps, then we should not update the value in state now - // https://github.com/microsoft/fluentui/issues/18499 - updateValueInWillReceiveProps - ? onInputValueChange?.(newValue, composing) - : this.setState({ inputValue: newValue }, () => onInputValueChange?.(newValue, composing)); + this.setState({ inputValue: newValue }, () => onInputValueChange?.(newValue, composing)); }; private _getDisplayValue(): string {