fix: #11191, only focus on search input on md environments and up

This commit is contained in:
Julian Lam
2023-01-25 15:43:56 -05:00
parent cc746e206a
commit c9b8e345e0

View File

@@ -53,7 +53,9 @@ define('categorySearch', ['alerts', 'bootstrap'], function (alerts, bootstrap) {
});
el.on('shown.bs.dropdown', function () {
searchEl.find('input').focus();
if (!['xs', 'sm'].includes(utils.findBootstrapEnvironment())) {
searchEl.find('input').focus();
}
});
el.on('hide.bs.dropdown', function () {