Merged in fix/remove-filtering-date-country (pull request #2278)

fix: remove filtering from date and country select for better mobile experience

Approved-by: Linus Flood
Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
Christian Andolf
2025-06-04 11:36:17 +00:00
6 changed files with 263 additions and 163 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
}