Skip to content

Commit 537e7b8

Browse files
committed
fixed type in SelectSingleFormField
1 parent 2e35a1d commit 537e7b8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

library/src/components/form/elements/SelectSingleFormField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface SelectSingleFormFieldProps<
88
A extends string | number,
99
> extends FormField<T> {
1010
options: Array<{ label: string; value: A }>
11-
onChange?: (value: string) => void
11+
onChange?: (value: A) => void
1212
placeholder?: string
1313
}
1414

library/src/components/inputs/Select.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@ const SelectInner = <ValueType, IsMulti extends boolean = boolean>({
347347
invalid,
348348
)
349349

350-
351350
// get the browsers locale
352351
const locale = navigator.language
353352

@@ -373,6 +372,7 @@ const SelectInner = <ValueType, IsMulti extends boolean = boolean>({
373372
return (
374373
<div
375374
{..._props.innerProps}
375+
// biome-ignore lint/a11y/useSemanticElements: <explanation>
376376
role="button"
377377
className={_props.getClassNames(
378378
"clearIndicator",
@@ -421,6 +421,7 @@ const SelectInner = <ValueType, IsMulti extends boolean = boolean>({
421421
}`
422422
return (
423423
<div
424+
// biome-ignore lint/a11y/useSemanticElements: <explanation>
424425
role="button"
425426
{..._props.innerProps}
426427
title={title}
@@ -480,8 +481,10 @@ const SelectInner = <ValueType, IsMulti extends boolean = boolean>({
480481
_props.selectProps.menuIsOpen ? "close" : "open"
481482
} the menu`
482483
return (
484+
// biome-ignore lint/a11y/useFocusableInteractive: <explanation>
483485
<div
484486
{..._props.innerProps}
487+
// biome-ignore lint/a11y/useSemanticElements: <explanation>
485488
role="button"
486489
data-action="open_select"
487490
//aria-disabled={_props.isDisabled}

0 commit comments

Comments
 (0)