Skip to content

Commit

Permalink
Fix failing React 16 test in main
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Oct 5, 2023
1 parent 2e257a2 commit 54ce5c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/combo_box/combo_box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ export class EuiComboBox<T> extends Component<

onKeyDown: KeyboardEventHandler<HTMLDivElement> = (event) => {
if (this.props.isDisabled) return;
event.persist(); // TODO: Remove once React 16 support is dropped
switch (event.key) {
case keys.ARROW_UP:
event.preventDefault();
Expand Down

0 comments on commit 54ce5c2

Please sign in to comment.