From 77895473e57f66da8807f043488abd12482cd13f Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 16 Sep 2015 14:40:44 +1000 Subject: [PATCH] don't select text on focus --- .../javascripts/discourse/components/search-text-field.js.es6 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/assets/javascripts/discourse/components/search-text-field.js.es6 b/app/assets/javascripts/discourse/components/search-text-field.js.es6 index 0b7b3d0e366..88ae59a9749 100644 --- a/app/assets/javascripts/discourse/components/search-text-field.js.es6 +++ b/app/assets/javascripts/discourse/components/search-text-field.js.es6 @@ -8,10 +8,6 @@ export default TextField.extend({ return searchContextEnabled ? "" : I18n.t('search.title'); }, - focusIn() { - Em.run.later(() => this.$().select()); - }, - @on("didInsertElement") becomeFocused() { if (this.get('hasAutofocus')) this.$().focus();