mirror of
https://github.com/flarum/core.git
synced 2025-02-20 08:04:58 +01:00
Select contents of search input on focus
This commit is contained in:
parent
d610ea663f
commit
f55d95c9b7
@ -172,6 +172,10 @@ export default class Search extends Component {
|
||||
search.searched.push(query);
|
||||
m.redraw();
|
||||
}, 250);
|
||||
})
|
||||
|
||||
.on('focus', function() {
|
||||
$(this).one('mouseup', e => e.preventDefault()).select();
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user