Add tabindex to Switch and SwitchTableField
This commit is contained in:
parent
f0bfd0bbd9
commit
c66d688936
2 changed files with 3 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ const Switch = (props: Props) => {
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
required={required}
|
required={required}
|
||||||
value={value}
|
value={value}
|
||||||
|
tabIndex={props.tabIndex}
|
||||||
onCheckedChange={onCheckedChange}
|
onCheckedChange={onCheckedChange}
|
||||||
>
|
>
|
||||||
<RadixSwitch.Thumb className={thumbClasses} />
|
<RadixSwitch.Thumb className={thumbClasses} />
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ interface Props {
|
||||||
description?: string
|
description?: string
|
||||||
value?: boolean
|
value?: boolean
|
||||||
className?: string
|
className?: string
|
||||||
|
tabIndex?: number
|
||||||
imageAlt?: string
|
imageAlt?: string
|
||||||
imageClass?: string
|
imageClass?: string
|
||||||
imageSrc?: string[]
|
imageSrc?: string[]
|
||||||
|
|
@ -43,6 +44,7 @@ const SwitchTableField = (props: Props) => {
|
||||||
<Switch
|
<Switch
|
||||||
name={props.name}
|
name={props.name}
|
||||||
checked={value}
|
checked={value}
|
||||||
|
tabIndex={props.tabIndex}
|
||||||
onCheckedChange={onValueChange}
|
onCheckedChange={onValueChange}
|
||||||
/>
|
/>
|
||||||
</TableField>
|
</TableField>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue