Skip to content

Commit

Permalink
Removing unnecessary check
Browse files Browse the repository at this point in the history
Co-authored-by: Makoto Morimoto <[email protected]>
  • Loading branch information
tringakrasniqi and khmakoto authored Jan 11, 2022
1 parent a406421 commit 35e928c
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -477,7 +477,7 @@ class ComboBoxInternal extends React.Component<IComboBoxInternalProps, IComboBox
* {@inheritdoc}
*/
public focus = (shouldOpenOnFocus?: boolean, useFocusAsync?: boolean): void => {
if (this.props.disabled === true) {
if (this.props.disabled) {
return;
}

Expand Down

0 comments on commit 35e928c

Please sign in to comment.