fix: date and country selects now still uses the filtering in desktop
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user