goodteditor-ui 1.0.74 → 1.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goodteditor-ui",
3
- "version": "1.0.74",
3
+ "version": "1.0.76",
4
4
  "main": "index.js",
5
5
  "homepage": "https://goodt-ui.netlify.app/",
6
6
  "scripts": {
@@ -225,7 +225,7 @@ export default {
225
225
  if (this.isRange) {
226
226
  const d = Array.isArray(val) ? val.map(this.toDate) : [];
227
227
  const [s, e] = d;
228
- if (s && e && isDateValid(s) && isDateValid(e) && s < e) {
228
+ if (s && e && isDateValid(s) && isDateValid(e) && s.getTime() <= e.getTime()) {
229
229
  this.date = d;
230
230
  } else {
231
231
  this.date = [];
@@ -352,6 +352,9 @@ export default {
352
352
  if (optionsSelected.length > 0) {
353
353
  this.dataListCursorIndex = this.getOptionIndex(optionsSelected[0]);
354
354
  this.optionsSelected = this.multiple ? optionsSelected : [optionsSelected[0]];
355
+ } else {
356
+ this.dataListCursorIndex = -1;
357
+ this.optionsSelected = [];
355
358
  }
356
359
  },
357
360
  exportModel() {