@lemonadejs/dropdown 3.1.8 → 3.1.9

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 +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -257,7 +257,7 @@ if (!Modal && typeof (require) === 'function') {
257
257
  // Lazy loading global instance
258
258
  let lazyloading = null;
259
259
  // Custom events defined by the user
260
- let onload = self.load;
260
+ let onload = self.onload;
261
261
  let onchange = self.onchange;
262
262
 
263
263
  // Cursor controllers
@@ -690,13 +690,15 @@ if (!Modal && typeof (require) === 'function') {
690
690
  prevent = true;
691
691
  } else if (e.key === 'Home') {
692
692
  moveCursor(-1, true);
693
+ prevent = true;
693
694
  } else if (e.key === 'End') {
694
695
  moveCursor(1, true);
696
+ prevent = true;
695
697
  } else if (e.key === 'Enter') {
696
698
  self.select(e, self.rows[cursor]);
697
699
  prevent = true;
698
700
  } else {
699
- if (e.keyCode === 32 && !self.autocomplete) {
701
+ if (e.keyCode === 32 && ! self.autocomplete) {
700
702
  self.select(e, self.rows[cursor]);
701
703
  }
702
704
  }
package/package.json CHANGED
@@ -19,5 +19,5 @@
19
19
  },
20
20
  "main": "dist/index.js",
21
21
  "types": "dist/index.d.ts",
22
- "version": "3.1.8"
22
+ "version": "3.1.9"
23
23
  }