fix: prevent menu closure when switching language in user dropdown
Set comboboxProps={{ withinPortal: false }} on the language Select
inside Menu.Dropdown so its option list renders inside the Menu's DOM
tree rather than a portal. This prevents the Menu from treating option
clicks as outside interactions and closing before changeLanguage fires.
This commit is contained in:
@@ -87,7 +87,6 @@ export default function LoginPage() {
|
||||
size="xs"
|
||||
variant="unstyled"
|
||||
w={90}
|
||||
comboboxProps={{ withinPortal: false }}
|
||||
data={[
|
||||
{ value: 'en', label: t('common:english') },
|
||||
{ value: 'id', label: t('common:indonesian') },
|
||||
|
||||
Reference in New Issue
Block a user