Skip to content

Commit

Permalink
fix(DatePicker2): prevent show popup when disabled, fix #3583
Browse files Browse the repository at this point in the history
  • Loading branch information
lakerswgq committed Dec 3, 2021
1 parent 608485b commit 003cc0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/date-picker2/picker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ class Picker extends React.Component {
triggerType={popupTriggerType}
style={popupStyle}
onVisibleChange={handleVisibleChange}
disabled={allDisabled}
trigger={
<div {...triggerProps} role="button" tabIndex="0" style={{ width: '100%' }}>
{triggerNode}
Expand Down

0 comments on commit 003cc0d

Please sign in to comment.