Fix for Safari selection bug in combo box.

This commit is contained in:
Adam Solove
2013-12-10 19:16:24 -05:00
parent 3205ecafea
commit d5d4def18e
+2
View File
@@ -99,6 +99,8 @@ d3.combobox = function() {
input.on('input.typeahead', function() {
idx = -1;
render();
var start = input.property('selectionStart');
input.node().setSelectionRange(start, start);
input.on('input.typeahead', change);
});
break;