Merge pull request #2051 from asolove/1934-safari-combobox

Fix for Safari selection bug in combo box
This commit is contained in:
John Firebaugh
2013-12-11 06:40:36 -08:00

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;