Select contents of search input on focus

This commit is contained in:
Toby Zerner 2015-09-22 17:06:06 +09:30
parent a184577877
commit 5203be4ec8

View File

@ -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();
});
}