mirror of
https://github.com/flarum/framework.git
synced 2025-02-18 03:02:44 +08: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…
Reference in New Issue
Block a user