From aa26e45c22d89e1fc0424d718f7cdaa441bf4c16 Mon Sep 17 00:00:00 2001
From: Faisal Amir
Date: Thu, 27 Feb 2025 11:28:07 +0700
Subject: [PATCH] fix: cannot click dropdown appearance (#4750)
---
joi/src/core/Select/index.tsx | 14 ++++++++++++--
web/screens/Settings/Appearance/index.tsx | 2 ++
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/joi/src/core/Select/index.tsx b/joi/src/core/Select/index.tsx
index ae5111fc1..d8935bd83 100644
--- a/joi/src/core/Select/index.tsx
+++ b/joi/src/core/Select/index.tsx
@@ -11,10 +11,13 @@ type Props = {
open?: boolean
block?: boolean
value?: string
+ side?: 'top' | 'right' | 'bottom' | 'left'
+ position?: 'item-aligned' | 'popper'
placeholder?: string
disabled?: boolean
containerPortal?: HTMLDivElement | undefined | null
className?: string
+ sideOffset?: number
onValueChange?: (value: string) => void
onOpenChange?: (open: boolean) => void
}
@@ -26,7 +29,10 @@ const Select = ({
disabled,
containerPortal,
block,
+ sideOffset,
+ position,
className,
+ side,
open,
onValueChange,
onOpenChange,
@@ -52,7 +58,12 @@ const Select = ({
-
+
{options &&
options.map((item, i) => {
@@ -79,7 +90,6 @@ const Select = ({
)
})}
-
diff --git a/web/screens/Settings/Appearance/index.tsx b/web/screens/Settings/Appearance/index.tsx
index 873ad9e13..409b7c727 100644
--- a/web/screens/Settings/Appearance/index.tsx
+++ b/web/screens/Settings/Appearance/index.tsx
@@ -84,6 +84,8 @@ export default function AppearanceOptions() {