@momentum-design/components 0.120.24 → 0.120.25
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/browser/index.js +3 -3
- package/dist/browser/index.js.map +3 -3
- package/dist/components/combobox/combobox.component.js +2 -2
- package/dist/components/list/list.component.js +1 -1
- package/dist/custom-elements.json +846 -1114
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +3 -3
- package/dist/utils/controllers/ElementStore.d.ts +1 -1
- package/dist/utils/controllers/ElementStore.js +1 -1
- package/dist/utils/mixins/lifecycle/CaptureDestroyEventForChildElement.js +6 -5
- package/package.json +1 -1
- package/dist/utils/mixins/ItemCollectionMixin.d.ts +0 -68
- package/dist/utils/mixins/ItemCollectionMixin.js +0 -89
@@ -170,8 +170,8 @@ class Combobox extends CaptureDestroyEventForChildElement(AutoFocusOnMountMixin(
|
|
170
170
|
* @internal
|
171
171
|
*/
|
172
172
|
this.handleDestroyEvent = (event) => {
|
173
|
-
const destroyedElement = event.
|
174
|
-
if (!this.isValidItem(destroyedElement) || destroyedElement.tabIndex !== 0) {
|
173
|
+
const destroyedElement = event.detail.originalTarget;
|
174
|
+
if (destroyedElement && (!this.isValidItem(destroyedElement) || destroyedElement.tabIndex !== 0)) {
|
175
175
|
return;
|
176
176
|
}
|
177
177
|
const destroyedItemIndex = this.navItems.findIndex(node => node === destroyedElement);
|
@@ -69,7 +69,7 @@ class List extends ListNavigationMixin(CaptureDestroyEventForChildElement(Compon
|
|
69
69
|
* @internal
|
70
70
|
*/
|
71
71
|
this.handleDestroyEvent = (event) => {
|
72
|
-
const destroyedElement = event.
|
72
|
+
const destroyedElement = event.detail.originalTarget;
|
73
73
|
if (!this.isValidItem(destroyedElement) || destroyedElement.tabIndex !== 0) {
|
74
74
|
return;
|
75
75
|
}
|