goodteditor-ui 1.0.73 → 1.0.75

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.73",
3
+ "version": "1.0.75",
4
4
  "main": "index.js",
5
5
  "homepage": "https://goodt-ui.netlify.app/",
6
6
  "scripts": {
@@ -33,7 +33,8 @@
33
33
  -->
34
34
  <slot name="icon" v-bind="{ value, toggle: togglePopover }">
35
35
  <div
36
- class="ui-input-color-picker-icon-preview mar-left-2 cursor-pointer"
36
+ class="ui-input-color-picker-icon-preview mar-left-2"
37
+ :class="[ readonly ? 'events-none': 'cursor-pointer' ]"
37
38
  :style="{ ...(isValid && { background: value }) }"
38
39
  @click="togglePopover"
39
40
  ></div>
@@ -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 = [];