Skip to content

Commit

Permalink
ver. 0.9.18
Browse files Browse the repository at this point in the history
  • Loading branch information
光弘 committed Mar 6, 2018
1 parent 00c3252 commit abb833b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

---

## 0.9.18

* `FIXED` RangeCalendar select error if value is null or []

## 0.9.17

* `FIXED` RangeCalendar locale presentation error if value is []
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uxcore-calendar",
"version": "0.9.17",
"version": "0.9.18",
"description": "calendar componment for react",
"main": "build/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/RangeCalendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class Calendar extends React.Component {
const value = this.getDate(p.value);
pickerOptions.value = calendarOptions.defaultValue = value;
} else {
pickerOptions.value = calendarOptions.defaultValue = null;
pickerOptions.value = calendarOptions.defaultValue = [];
}

if (p.defaultValue && Array.isArray(p.defaultValue) && p.defaultValue.length !== 0) {
Expand Down

0 comments on commit abb833b

Please sign in to comment.