mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
don't select text on focus
This commit is contained in:
parent
31d801ce2c
commit
77895473e5
@ -8,10 +8,6 @@ export default TextField.extend({
|
|||||||
return searchContextEnabled ? "" : I18n.t('search.title');
|
return searchContextEnabled ? "" : I18n.t('search.title');
|
||||||
},
|
},
|
||||||
|
|
||||||
focusIn() {
|
|
||||||
Em.run.later(() => this.$().select());
|
|
||||||
},
|
|
||||||
|
|
||||||
@on("didInsertElement")
|
@on("didInsertElement")
|
||||||
becomeFocused() {
|
becomeFocused() {
|
||||||
if (this.get('hasAutofocus')) this.$().focus();
|
if (this.get('hasAutofocus')) this.$().focus();
|
||||||
|
Loading…
Reference in New Issue
Block a user