fix: focus on save button on plugin activation

isekai-main
Julian Lam 3 years ago
parent 6869920e06
commit 46e5e17d0f

@ -79,6 +79,12 @@ define('admin/extend/plugins', [
callback: toggleActivate,
},
},
onShown: function () {
const saveEl = this.querySelector('button.btn-primary');
if (saveEl) {
saveEl.focus();
}
},
});
});
} else {

Loading…
Cancel
Save