Skip to content

Commit

Permalink
fix: fixup select disabled attribute is invalid (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaogengzhu authored Dec 25, 2021
1 parent 45bca64 commit cc3418a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/select/base/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ const Select = forwardRefWithStatics(
}, [showPopup]);

const handleShowPopup = (visible: boolean) => {
if (disabled) return;
setShowPopup(visible);
onVisibleChange?.(visible);
if (!visible && !multiple && filterable) {
Expand Down

0 comments on commit cc3418a

Please sign in to comment.