[Unreleased bug] Fleet UI: onChange called twice due to repeat (#23412)

This commit is contained in:
RachelElysia 2024-10-30 16:36:05 -04:00 committed by GitHub
parent 951542dacf
commit 9c3b3016c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}
>