aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/select
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2023-05-24 06:57:50 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2023-05-24 16:40:43 +0530
commite245b4fa229bee1e2ab97fcb42de3831b8bdbe5b (patch)
treed684777b3fde5470c9f99304a9f022422ffb8045 /src/components/ui/select
parent6.3.0-nightly.9 [skip ci] (diff)
downloadferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.gz
ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.zst
ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.zip
Upgrade npm modules
Diffstat (limited to 'src/components/ui/select')
-rw-r--r--src/components/ui/select/index.tsx16
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}