From 33ad8e413424e0000e13c024fc30b3c62c5765d0 Mon Sep 17 00:00:00 2001 From: Ro Savage Date: Thu, 19 Jan 2017 22:12:00 +1300 Subject: [PATCH] Added click blocking to portal (#708) --- src/datepicker.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/datepicker.jsx b/src/datepicker.jsx index aa5776455..8d9d4396b 100644 --- a/src/datepicker.jsx +++ b/src/datepicker.jsx @@ -147,6 +147,7 @@ var DatePicker = React.createClass({ handleCalendarClickOutside (event) { this.setOpen(false) + if (this.props.withPortal) { event.preventDefault() } }, handleSelect (date, event) {