From dcabde40c37d46e1a4ab0741f9cf029976b4cdbc Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Thu, 3 Apr 2014 12:19:37 +0200 Subject: [PATCH] Prevent the cursor from setting it to initial position in IE --- select2.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/select2.js b/select2.js index 3beb6420..1966db3c 100644 --- a/select2.js +++ b/select2.js @@ -1221,6 +1221,9 @@ the specific language governing permissions and limitations under the Apache Lic dropWidth = $dropdown.outerWidth(false); enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight; $dropdown.show(); + + // fix so the cursor does not move to the left within the search-textbox in IE + this.focusSearch(); } if (this.opts.dropdownAutoWidth) {