fix: date and country selects now still uses the filtering in desktop

This commit is contained in:
Christian Andolf
2025-06-04 12:00:49 +02:00
parent 7497203df2
commit afd3a7d9ca
6 changed files with 96 additions and 68 deletions

View File

@@ -28,7 +28,7 @@ export function Select({
}: SelectProps | SelectFilterProps) {
const [isOpen, setIsOpen] = useState(false)
if ('enableFiltering' in props) {
if (props.enableFiltering) {
return (
<SelectFilter
name={name}

View File

@@ -17,6 +17,7 @@ export interface SelectProps extends ComponentProps<typeof Select> {
name: string
label: string
onSelectionChange?: (key: Key | null) => void
enableFiltering?: false
}
export interface SelectItemProps extends ComponentProps<typeof ListBoxItem> {
@@ -32,5 +33,5 @@ export interface SelectFilterProps extends ComponentProps<typeof ComboBox> {
name: string
label: string
onSelectionChange?: (key: Key | null) => void
enableFiltering: boolean
enableFiltering: true
}