Skip to content

Commit

Permalink
chore: adjust code structure
Browse files Browse the repository at this point in the history
  • Loading branch information
aojunhao123 committed Oct 28, 2024
1 parent 9201339 commit 393749a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/OptionList/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ const RawOptionList = React.forwardRef<RefOptionListProps, RawOptionListProps>((
};

const isSelectable = (option: DefaultOptionType) => {
if (disabled) return false;
if (disabled) {
return false;
}

const { disabled: optionDisabled } = option;
const isMergedLeaf = isLeaf(option, fieldNames);
Expand Down

0 comments on commit 393749a

Please sign in to comment.