From 5e202a01fdc9e430e3dda972abb92168941ecfbe Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sun, 19 May 2024 21:51:30 -0300 Subject: [PATCH] Close select after an option is clicked --- src/js/components/Select/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/components/Select/index.tsx b/src/js/components/Select/index.tsx index 513db95..117cddd 100644 --- a/src/js/components/Select/index.tsx +++ b/src/js/components/Select/index.tsx @@ -32,7 +32,7 @@ function Select({ value, children: options, className }: Props) {
  • [e.stopPropagation(), setOpen(true)]} + onClick={e => [e.stopPropagation(), setOpen(!isOpen)]} > {n}