Skip to content

Commit

Permalink
Added click blocking to portal (Hacker0x01#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
ro-savage authored and martijnrusschen committed Jan 19, 2017
1 parent 641a38d commit 33ad8e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/datepicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ var DatePicker = React.createClass({

handleCalendarClickOutside (event) {
this.setOpen(false)
if (this.props.withPortal) { event.preventDefault() }
},

handleSelect (date, event) {
Expand Down

0 comments on commit 33ad8e4

Please sign in to comment.