mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Select contents of search input on focus
This commit is contained in:
parent
a184577877
commit
5203be4ec8
|
@ -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…
Reference in New Issue
Block a user