mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-24 00:09:41 +01:00
fix: #11191, only focus on search input on md environments and up
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user