Skip to content

Commit dcabde4

Browse files
committed
Prevent the cursor from setting it to initial position in IE
1 parent 937aaa1 commit dcabde4

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)