mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: focus on save button on plugin activation
This commit is contained in:
@@ -79,6 +79,12 @@ define('admin/extend/plugins', [
|
||||
callback: toggleActivate,
|
||||
},
|
||||
},
|
||||
onShown: function () {
|
||||
const saveEl = this.querySelector('button.btn-primary');
|
||||
if (saveEl) {
|
||||
saveEl.focus();
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user