@ni/ok-components 1.18.3 → 1.18.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.
- package/dist/all-components-bundle.js +13 -5
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +4 -4
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/fv/split-button/index.js +1 -1
- package/dist/esm/fv/split-button/index.js.map +1 -1
- package/dist/esm/fv/split-button-anchor/index.js +1 -1
- package/dist/esm/fv/split-button-anchor/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -6573,7 +6573,7 @@
|
|
|
6573
6573
|
*/
|
|
6574
6574
|
this.stopAutoUpdateEventListeners = () => {
|
|
6575
6575
|
window.removeEventListener(eventResize, this.update);
|
|
6576
|
-
window.removeEventListener(eventScroll, this.update);
|
|
6576
|
+
window.removeEventListener(eventScroll, this.update, { capture: true });
|
|
6577
6577
|
if (this.resizeDetector !== null && this.viewportElement !== null) {
|
|
6578
6578
|
this.resizeDetector.unobserve(this.viewportElement);
|
|
6579
6579
|
}
|
|
@@ -28306,10 +28306,16 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
28306
28306
|
this.toggleButton.focus();
|
|
28307
28307
|
};
|
|
28308
28308
|
}
|
|
28309
|
+
connectedCallback() {
|
|
28310
|
+
super.connectedCallback();
|
|
28311
|
+
if (this.region) {
|
|
28312
|
+
this.region.addEventListener(eventChange, this.menuChangeHandler, { capture: true });
|
|
28313
|
+
}
|
|
28314
|
+
}
|
|
28309
28315
|
disconnectedCallback() {
|
|
28310
28316
|
super.disconnectedCallback();
|
|
28311
28317
|
if (this.region) {
|
|
28312
|
-
this.region.removeEventListener(eventChange, this.menuChangeHandler);
|
|
28318
|
+
this.region.removeEventListener(eventChange, this.menuChangeHandler, { capture: true });
|
|
28313
28319
|
}
|
|
28314
28320
|
}
|
|
28315
28321
|
toggleButtonChanged(_prev, _next) {
|
|
@@ -28319,7 +28325,9 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
28319
28325
|
}
|
|
28320
28326
|
regionChanged(prev, _next) {
|
|
28321
28327
|
if (prev) {
|
|
28322
|
-
prev.removeEventListener(eventChange, this.menuChangeHandler
|
|
28328
|
+
prev.removeEventListener(eventChange, this.menuChangeHandler, {
|
|
28329
|
+
capture: true
|
|
28330
|
+
});
|
|
28323
28331
|
}
|
|
28324
28332
|
if (this.region) {
|
|
28325
28333
|
if (this.toggleButton) {
|
|
@@ -114989,7 +114997,7 @@ focus outline in that case.
|
|
|
114989
114997
|
/** @internal */
|
|
114990
114998
|
regionChanged(prev, _next) {
|
|
114991
114999
|
if (prev) {
|
|
114992
|
-
prev.removeEventListener('change', this.menuChangeHandler);
|
|
115000
|
+
prev.removeEventListener('change', this.menuChangeHandler, { capture: true });
|
|
114993
115001
|
}
|
|
114994
115002
|
if (this.region) {
|
|
114995
115003
|
this.region.anchorElement = this.toggleButton ?? this;
|
|
@@ -115187,7 +115195,7 @@ focus outline in that case.
|
|
|
115187
115195
|
/** @internal */
|
|
115188
115196
|
regionChanged(prev, _next) {
|
|
115189
115197
|
if (prev) {
|
|
115190
|
-
prev.removeEventListener('change', this.menuChangeHandler);
|
|
115198
|
+
prev.removeEventListener('change', this.menuChangeHandler, { capture: true });
|
|
115191
115199
|
}
|
|
115192
115200
|
if (this.region) {
|
|
115193
115201
|
this.region.anchorElement = this.toggleButton ?? this;
|