Skip to content

Commit 0d06066

Browse files
committed
Merge pull request select2#2238 from mkurz/focus-fix
Prevent the cursor from setting it to initial position in IE
2 parents e801573 + dcabde4 commit 0d06066

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

select2.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,9 @@ the specific language governing permissions and limitations under the Apache Lic
12211221
dropWidth = $dropdown.outerWidth(false);
12221222
enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight;
12231223
$dropdown.show();
1224+
1225+
// fix so the cursor does not move to the left within the search-textbox in IE
1226+
this.focusSearch();
12241227
}
12251228

12261229
if (this.opts.dropdownAutoWidth) {

0 commit comments

Comments
 (0)