fix: #14045, automatically open category selector dropdown on move topic modal

This commit is contained in:
Julian Lam
2026-03-27 13:20:52 -04:00
parent deca5e6715
commit 2327cae764
2 changed files with 5 additions and 4 deletions

View File

@@ -89,8 +89,6 @@ define('forum/category/tools', [
}
move.init(tids, null, onCommandComplete);
});
return false;
});
components.get('topic/move-all').on('click', function () {

View File

@@ -2,8 +2,8 @@
define('forum/topic/move', [
'categorySelector', 'alerts', 'hooks', 'api',
], function (categorySelector, alerts, hooks, api) {
'categorySelector', 'alerts', 'hooks', 'api', 'bootstrap',
], function (categorySelector, alerts, hooks, api, bootstrap) {
const Move = {};
let modal;
let selectedCategory;
@@ -37,6 +37,9 @@ define('forum/topic/move', [
localOnly: true,
});
const dropdown = new bootstrap.Dropdown(dropdownEl.find('button'));
dropdown.show();
modal.find('#move_thread_commit').on('click', onCommitClicked);
modal.find('#move_topic_cancel').on('click', closeMoveModal);
});