mirror of
https://github.com/flarum/core.git
synced 2025-02-22 10:13:48 +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);
|
search.searched.push(query);
|
||||||
m.redraw();
|
m.redraw();
|
||||||
}, 250);
|
}, 250);
|
||||||
|
})
|
||||||
|
|
||||||
|
.on('focus', function() {
|
||||||
|
$(this).one('mouseup', e => e.preventDefault()).select();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user