From 97ac0c06f152bbfb8ec4da0cda50678410a8e676 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Mon, 5 Sep 2016 11:07:33 -0400 Subject: [PATCH] Fix d3 reference --- modules/lib/d3.combobox.js | 5 ++-- test/index.html | 1 - test/spec/lib/d3.combobox.js | 57 ++++++++++++++++++++++++------------ test/spec/spec_helpers.js | 1 + 4 files changed, 42 insertions(+), 22 deletions(-) diff --git a/modules/lib/d3.combobox.js b/modules/lib/d3.combobox.js index 90865f847..2f64be1c7 100644 --- a/modules/lib/d3.combobox.js +++ b/modules/lib/d3.combobox.js @@ -40,8 +40,9 @@ export function d3combobox() { .filter(function(d) { return d === input.node(); }) .data([input.node()]); - caret.enter().insert('div', function() { return sibling; }) - .attr('class', 'combobox-caret'); + caret = caret.enter().insert('div', function() { return sibling; }) + .attr('class', 'combobox-caret') + .merge(caret); caret .on('mousedown', function () { diff --git a/test/index.html b/test/index.html index fb2aa929b..a2aff7c07 100644 --- a/test/index.html +++ b/test/index.html @@ -15,7 +15,6 @@ -