Skip to content

Commit b4c33ca

Browse files
committed
fix/qg-181: исправлена ошибка с поломкой кнопки меню после htmx-запросов
Логика маунта сайдбара после htmx-запросов была добавлена в рамках перехода на навигацию через htmx, от которой я решил отказаться. closes #181
1 parent e4c8032 commit b4c33ca

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

app/src/main/resources/static/vendor/left-panel/js/toggle-left-panel.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,4 @@ function mountSidebar() {
1212

1313
window.addEventListener('DOMContentLoaded', event => {
1414
mountSidebar();
15-
});
16-
17-
18-
window.addEventListener("load", () => {
19-
document.body.addEventListener('htmx:afterSwap', function (evt) {
20-
if (evt.detail.xhr.status === 200) {
21-
mountSidebar();
22-
}
23-
})
24-
})
15+
});

0 commit comments

Comments
 (0)