@lemonadejs/calendar 3.6.0 → 5.0.0

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/dist/index.js CHANGED
@@ -856,20 +856,23 @@ if (! Modal && typeof (require) === 'function') {
856
856
  // Create input controls
857
857
  if (self.input) {
858
858
  let input = getInput();
859
- input.classList.add('lm-calendar-input');
860
- input.addEventListener('focus', self.open);
861
- input.addEventListener('click', self.open);
862
- input.addEventListener('blur', blur);
863
-
864
- if (self.onChange) {
865
- input.addEventListener('change', self.onChange);
866
- }
859
+ if (input && input.tagName) {
860
+ input.classList.add('lm-input');
861
+ input.classList.add('lm-calendar-input');
862
+ input.addEventListener('focus', self.open);
863
+ input.addEventListener('click', self.open);
864
+ input.addEventListener('blur', blur);
865
+
866
+ if (self.onChange) {
867
+ input.addEventListener('change', self.onChange);
868
+ }
867
869
 
868
- // Retrieve the value
869
- if (self.value) {
870
- input.value = self.value;
871
- } else if (input.value && input.value !== self.value) {
872
- self.value = input.value;
870
+ // Retrieve the value
871
+ if (self.value) {
872
+ input.value = self.value;
873
+ } else if (input.value && input.value !== self.value) {
874
+ self.value = input.value;
875
+ }
873
876
  }
874
877
  }
875
878
 
package/dist/style.css CHANGED
@@ -185,6 +185,7 @@
185
185
  top: calc(25%);
186
186
  height: 50%;
187
187
  background-color: var(--lm-main-color-alpha, #2196f388);
188
+ z-index: -1;
188
189
  }
189
190
 
190
191
  .lm-calendar-content > div[data-start="true"]::before {
package/package.json CHANGED
@@ -14,10 +14,10 @@
14
14
  "javascript plugins"
15
15
  ],
16
16
  "dependencies": {
17
- "lemonadejs": "^4.3.3",
18
- "@lemonadejs/modal": "^3.3.0"
17
+ "lemonadejs": "^5.0.3",
18
+ "@lemonadejs/modal": "^5.0.0"
19
19
  },
20
20
  "main": "dist/index.js",
21
21
  "types": "dist/index.d.ts",
22
- "version": "3.6.0"
22
+ "version": "5.0.0"
23
23
  }