Skip to content

Commit b9b51f3

Browse files
committed
Widget shouldn't focus input in mobile devices when the popup is opened. Fixes telerik#536
1 parent 4700e89 commit b9b51f3

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/kendo.list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ var __meta__ = {
515515

516516
_toggle: function(open, preventFocus) {
517517
var that = this;
518-
var touchEnabled = support.touch && support.MSPointers && support.pointers;
518+
var touchEnabled = support.touch || support.MSPointers || support.pointers;
519519

520520
open = open !== undefined? open : !that.popup.visible();
521521

tests/combobox/navigation.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,4 +515,15 @@ test("ComboBox selects an item on ENTER after search ", 1, function() {
515515
});
516516
});
517517

518+
test("ComboBox does not focus input if mobile device", 1, function() {
519+
var origin = kendo.support.touch;
520+
var input = combobox.input;
521+
522+
kendo.support.touch = true;
523+
524+
combobox.wrapper.find(".k-icon").click();
525+
526+
notEqual(combobox.input[0], document.activeElement);
527+
});
528+
518529
})();

0 commit comments

Comments
 (0)