Skip to content
Prev Previous commit
Next Next commit
Stop the synthetic event propagating instead of native
This stops other listeners receiving this event, whereas stopping the native event still somehow allowed propagation.
  • Loading branch information
opr committed Jan 11, 2022
commit dbaf35cb134219d4a5004fd683398c915c7676d4
2 changes: 1 addition & 1 deletion packages/components/src/custom-select-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default function CustomSelectControl( {
<ul
{ ...menuProps }
onKeyDown={ ( e ) => {
e.nativeEvent.stopImmediatePropagation();
e.stopPropagation();
menuProps.onKeyDown( e );
} }
>
Expand Down