mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 05:49:16 +02:00
Ensure all combobox inputs have a carat
Previously, the second combobox input for a given parent element would wind up without a carat, because the data bind would match the first carat. Fixes #1549.
This commit is contained in:
@@ -25,7 +25,8 @@ d3.combobox = function() {
|
||||
sibling = this.nextSibling;
|
||||
|
||||
var carat = d3.select(parent).selectAll('.combobox-carat')
|
||||
.data([0]);
|
||||
.filter(function(d) { return d === input.node(); })
|
||||
.data([input.node()]);
|
||||
|
||||
carat.enter().insert('div', function() { return sibling; })
|
||||
.attr('class', 'combobox-carat');
|
||||
|
||||
Reference in New Issue
Block a user