mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
[Unreleased bug] Fleet UI: onChange called twice due to repeat (#23412)
This commit is contained in:
parent
951542dacf
commit
9c3b3016c5
1 changed files with 1 additions and 2 deletions
|
|
@ -76,13 +76,12 @@ const CustomDropdownIndicator = (
|
|||
};
|
||||
|
||||
const CustomOption: React.FC<OptionProps<IDropdownOption, false>> = (props) => {
|
||||
const { innerProps, innerRef, data, isDisabled } = props;
|
||||
const { innerRef, data, isDisabled } = props;
|
||||
|
||||
const optionContent = (
|
||||
<div
|
||||
className={`${baseClass}__option`}
|
||||
ref={innerRef}
|
||||
{...innerProps}
|
||||
tabIndex={isDisabled ? -1 : 0} // Tabbing skipped when disabled
|
||||
aria-disabled={isDisabled}
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in a new issue