Merge pull request #824 from yohanboniface/combobox-focus

Do not show combobox if input has lost focus
This commit is contained in:
Ansis Brammanis
2013-02-19 12:46:50 -08:00

View File

@@ -187,7 +187,8 @@ d3.combobox = function() {
function render(data) {
if (data.length) show();
if (data.length &&
document.activeElement === input.node()) show();
else hide();
autocomplete(e, data);