Compare commits

...
Author SHA1 Message Date
Maarten Lakerveld 224a356490 Remove the unreachable scroll-to-top branch from the view tab handler
Web Awesome's tab group never emits wa-tab-show for a click or Enter on the
already-active tab, so the same-view branch in _handleViewSelected has not
been reachable by user input since the migration in #26951. It only fires
for the group's own sync events, and once hui-root binds the group's active
property (#54613) those events also fire when the group is re-created after
leaving a subview or edit mode, overriding the restored scroll position.
2026-10-19 14:04:01 +02:00
-2
View File
@@ -1200,8 +1200,6 @@ class HUIRoot extends LitElement {
if (viewIndex !== this._curView) {
const path = this.config.views[viewIndex].path || viewIndex;
this._navigateToView(path);
} else if (!this._editMode) {
scrollTo({ behavior: "smooth", top: 0 });
}
}