neo.mjs 9.11.0 → 9.11.1
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/ServiceWorker.mjs
CHANGED
package/package.json
CHANGED
package/src/DefaultConfig.mjs
CHANGED
@@ -264,12 +264,12 @@ const DefaultConfig = {
|
|
264
264
|
useVdomWorker: true,
|
265
265
|
/**
|
266
266
|
* buildScripts/injectPackageVersion.mjs will update this value
|
267
|
-
* @default '9.11.
|
267
|
+
* @default '9.11.1'
|
268
268
|
* @memberOf! module:Neo
|
269
269
|
* @name config.version
|
270
270
|
* @type String
|
271
271
|
*/
|
272
|
-
version: '9.11.
|
272
|
+
version: '9.11.1'
|
273
273
|
};
|
274
274
|
|
275
275
|
Object.assign(DefaultConfig, {
|
package/src/tab/Strip.mjs
CHANGED
@@ -57,15 +57,22 @@ class Strip extends Component {
|
|
57
57
|
getActiveTabRectThenMove(opts) {
|
58
58
|
let me = this,
|
59
59
|
ids = [me.id],
|
60
|
-
tabContainer = me.getTabContainer()
|
60
|
+
tabContainer = me.getTabContainer(),
|
61
|
+
oldTab;
|
61
62
|
|
62
63
|
// We do not need a movement, in case there is no oldValue
|
63
64
|
if (me.useActiveTabIndicator && me.vnode && Neo.isNumber(opts?.oldValue)) {
|
64
|
-
|
65
|
+
oldTab = tabContainer.getTabAtIndex(opts.oldValue);
|
65
66
|
|
66
|
-
|
67
|
-
|
68
|
-
|
67
|
+
// The activeIndexChange event can get triggered when removing the currently active tab,
|
68
|
+
// In this case, we can no longer access the related DOMRect and need to opt out.
|
69
|
+
if (oldTab) {
|
70
|
+
ids.push(tabContainer.getTabAtIndex(opts.value).id, oldTab.id);
|
71
|
+
|
72
|
+
me.getDomRect(ids).then(data => {
|
73
|
+
me.moveActiveIndicator(data)
|
74
|
+
})
|
75
|
+
}
|
69
76
|
}
|
70
77
|
}
|
71
78
|
|