1
0
mirror of synced 2024-11-22 21:16:10 +03:00

fix cursor position in select when opened with a char key press. fixes #323

This commit is contained in:
Igor Vaynberg 2012-08-13 15:27:08 -07:00
parent 4f6bf6cc81
commit 816af4425b

View File

@ -1515,6 +1515,8 @@
keyWritten = keyWritten.toUpperCase();
}
// focus the field before calling val so the cursor ends up after the value instead of before
this.search.focus();
this.search.val(keyWritten);
// prevent event propagation so it doesnt replay on the now focussed search field and result in double key entry