@lemonadejs/dropdown 3.1.6 → 3.1.8

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -419,7 +419,7 @@ if (!Modal && typeof (require) === 'function') {
419
419
 
420
420
  // Component onchange
421
421
  if (typeof(onchange) === 'function') {
422
- onchange(self, value);
422
+ onchange.call(self, self, getValue());
423
423
  }
424
424
  }
425
425
 
@@ -664,8 +664,8 @@ if (!Modal && typeof (require) === 'function') {
664
664
  lazyloading = lazyLoading(self);
665
665
  // Process the data
666
666
  setData();
667
- // Se value
668
- if (self.value) {
667
+ // Set value
668
+ if (typeof(self.value) !== 'undefined') {
669
669
  setValue(self.value);
670
670
  }
671
671
  // Focus out of the component
package/package.json CHANGED
@@ -14,10 +14,10 @@
14
14
  "javascript plugins"
15
15
  ],
16
16
  "dependencies": {
17
- "lemonadejs": "^4.1.0",
17
+ "lemonadejs": "^4.1.1",
18
18
  "@lemonadejs/modal": "^2.7.1"
19
19
  },
20
20
  "main": "dist/index.js",
21
21
  "types": "dist/index.d.ts",
22
- "version": "3.1.6"
22
+ "version": "3.1.8"
23
23
  }