Skip to content

Commit

Permalink
When OK button is not display, check can be escaped
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Oct 31, 2018
1 parent 480dcde commit c962428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Calendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ const Calendar = createReactClass({
selectedValue={selectedValue}
value={value}
disabledDate={disabledDate}
okDisabled={!this.isAllowedDate(selectedValue)}
okDisabled={props.showOk && !this.isAllowedDate(selectedValue)}
onOk={this.onOk}
onSelect={this.onSelect}
onToday={this.onToday}
Expand Down

0 comments on commit c962428

Please sign in to comment.