We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72551dd commit 667d917Copy full SHA for 667d917
1 file changed
src/components/DatePicker/index.jsx
@@ -11,6 +11,7 @@ import classnames from "classnames";
11
import { isNotPresent } from "neetocist";
12
import { Left, Right, Calendar, Close } from "neetoicons";
13
import PropTypes from "prop-types";
14
+import { equals } from "ramda";
15
16
import { Tag } from "components";
17
import Label from "components/Label";
@@ -113,7 +114,7 @@ const DatePicker = forwardRef(
113
114
};
115
116
const handleOnOpenChange = open => {
- if (!open && value !== inputValue) {
117
+ if (!open && !equals(value, inputValue)) {
118
onChange(value, formattedString(value, dateFormat));
119
}
120
0 commit comments