mirror of
https://github.com/flarum/framework.git
synced 2025-05-23 23:29:57 +08:00
Select contents of search input on focus
This commit is contained in:
@ -172,6 +172,10 @@ export default class Search extends Component {
|
|||||||
search.searched.push(query);
|
search.searched.push(query);
|
||||||
m.redraw();
|
m.redraw();
|
||||||
}, 250);
|
}, 250);
|
||||||
|
})
|
||||||
|
|
||||||
|
.on('focus', function() {
|
||||||
|
$(this).one('mouseup', e => e.preventDefault()).select();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user