diff --git a/src/components/ui/base/Select.tsx b/src/components/ui/base/Select.tsx index e7d26959..40fd1d86 100644 --- a/src/components/ui/base/Select.tsx +++ b/src/components/ui/base/Select.tsx @@ -1,6 +1,7 @@ import { createEffect, createMemo, createSignal, createUniqueId, mergeProps, on } from 'solid-js' import * as select from '@zag-js/select' import { normalizeProps, useMachine } from '@zag-js/solid' +import { Portal } from 'solid-js/web' import type { JSXElement } from 'solid-js' import type { SelectOptionType } from '@/types/provider' @@ -77,21 +78,24 @@ export const Select = (inputProps: Props) => { {!props.readonly &&
}
-
-
    - {props.options.map(item => ( -
  • { - setSelectedItem(item) - props.onChange(item.value) - }} - > - {itemComponent(item, item.value === selectedItem()?.value)} -
  • - ))} -
-
+ + +
+
    + {props.options.map(item => ( +
  • { + setSelectedItem(item) + props.onChange(item.value) + }} + > + {itemComponent(item, item.value === selectedItem()?.value)} +
  • + ))} +
+
+
) }