@momentum-design/components 0.123.3 → 0.123.4
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.
|
@@ -559,28 +559,33 @@ class Select extends ListNavigationMixin(CaptureDestroyEventForChildElement(Auto
|
|
|
559
559
|
case KEYS.ENTER:
|
|
560
560
|
case KEYS.SPACE:
|
|
561
561
|
this.displayPopover = true;
|
|
562
|
+
event.preventDefault();
|
|
562
563
|
event.stopPropagation();
|
|
563
564
|
break;
|
|
564
565
|
case KEYS.HOME: {
|
|
565
566
|
this.displayPopover = true;
|
|
566
567
|
this.resetTabIndexAndSetFocusAfterUpdate(0);
|
|
568
|
+
event.preventDefault();
|
|
569
|
+
event.stopPropagation();
|
|
567
570
|
break;
|
|
568
571
|
}
|
|
569
572
|
case KEYS.END: {
|
|
570
573
|
this.displayPopover = true;
|
|
571
574
|
this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length - 1);
|
|
575
|
+
event.preventDefault();
|
|
576
|
+
event.stopPropagation();
|
|
572
577
|
break;
|
|
573
578
|
}
|
|
574
579
|
default: {
|
|
575
580
|
if (event.key.length === 1) {
|
|
576
581
|
this.displayPopover = true;
|
|
577
582
|
this.handleSelectedOptionByKeyInput(event.key);
|
|
583
|
+
event.preventDefault();
|
|
584
|
+
event.stopPropagation();
|
|
578
585
|
}
|
|
579
586
|
break;
|
|
580
587
|
}
|
|
581
588
|
}
|
|
582
|
-
event.preventDefault();
|
|
583
|
-
event.stopPropagation();
|
|
584
589
|
}
|
|
585
590
|
resetTabIndexAndSetFocusAfterUpdate(newOptionIndex) {
|
|
586
591
|
if (this.displayPopover) {
|