@lemonadejs/dropdown 3.1.8 → 3.1.10
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 +8 -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.
|
|
260
|
+
let onload = self.onload;
|
|
261
261
|
let onchange = self.onchange;
|
|
262
262
|
|
|
263
263
|
// Cursor controllers
|
|
@@ -690,13 +690,19 @@ if (!Modal && typeof (require) === 'function') {
|
|
|
690
690
|
prevent = true;
|
|
691
691
|
} else if (e.key === 'Home') {
|
|
692
692
|
moveCursor(-1, true);
|
|
693
|
+
if (! self.autocomplete) {
|
|
694
|
+
prevent = true;
|
|
695
|
+
}
|
|
693
696
|
} else if (e.key === 'End') {
|
|
694
697
|
moveCursor(1, true);
|
|
698
|
+
if (! self.autocomplete) {
|
|
699
|
+
prevent = true;
|
|
700
|
+
}
|
|
695
701
|
} else if (e.key === 'Enter') {
|
|
696
702
|
self.select(e, self.rows[cursor]);
|
|
697
703
|
prevent = true;
|
|
698
704
|
} else {
|
|
699
|
-
if (e.keyCode === 32 && !self.autocomplete) {
|
|
705
|
+
if (e.keyCode === 32 && ! self.autocomplete) {
|
|
700
706
|
self.select(e, self.rows[cursor]);
|
|
701
707
|
}
|
|
702
708
|
}
|
package/package.json
CHANGED