diff options
Diffstat (limited to 'src/components/ui/select')
-rw-r--r-- | src/components/ui/select/index.tsx | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/components/ui/select/index.tsx b/src/components/ui/select/index.tsx index 31aa8a15f..695e70e28 100644 --- a/src/components/ui/select/index.tsx +++ b/src/components/ui/select/index.tsx | |||
@@ -321,10 +321,12 @@ class SelectComponent extends Component<IProps, IState> { | |||
321 | case 39: | 321 | case 39: |
322 | case 38: | 322 | case 38: |
323 | case 40: // Arrow keys | 323 | case 40: // Arrow keys |
324 | case 32: | 324 | case 32: { |
325 | break; // Space | 325 | break; |
326 | default: | 326 | } // Space |
327 | break; // do not block other keys | 327 | default: { |
328 | break; | ||
329 | } // do not block other keys | ||
328 | } | 330 | } |
329 | } | 331 | } |
330 | 332 | ||
@@ -381,12 +383,12 @@ class SelectComponent extends Component<IProps, IState> { | |||
381 | [`${classes.hasError}`]: error, | 383 | [`${classes.hasError}`]: error, |
382 | })} | 384 | })} |
383 | onClick={ | 385 | onClick={ |
384 | !disabled | 386 | disabled |
385 | ? () => | 387 | ? noop |
388 | : () => | ||
386 | this.setState((state: IState) => ({ | 389 | this.setState((state: IState) => ({ |
387 | open: !state.open, | 390 | open: !state.open, |
388 | })) | 391 | })) |
389 | : noop | ||
390 | } | 392 | } |
391 | > | 393 | > |
392 | {selection} | 394 | {selection} |