mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 05:30:35 +02:00
Use parentNode instead of parentElement for IE
This commit is contained in:
@@ -197,7 +197,7 @@ export function uiPresetList(context) {
|
||||
function itemKeydown(){
|
||||
// the actively focused item
|
||||
var item = d3_select(this.closest('.preset-list-item'));
|
||||
var parentItem = d3_select(item.node().parentElement.closest('.preset-list-item'));
|
||||
var parentItem = d3_select(item.node().parentNode.closest('.preset-list-item'));
|
||||
|
||||
// arrow down, move focus to the next, lower item
|
||||
if (d3_event.keyCode === utilKeybinding.keyCodes['↓']) {
|
||||
|
||||
@@ -514,7 +514,7 @@ export function uiToolSearchAdd(context) {
|
||||
if (shouldExpand) {
|
||||
var subitems = item.subitems();
|
||||
var selector = '#' + itemSelection.node().id + ' + *';
|
||||
item.subsection = d3_select(itemSelection.node().parentElement).insert('div', selector)
|
||||
item.subsection = d3_select(itemSelection.node().parentNode).insert('div', selector)
|
||||
.attr('class', 'subsection subitems');
|
||||
var subitemsEnter = item.subsection.selectAll('.list-item')
|
||||
.data(subitems)
|
||||
|
||||
Reference in New Issue
Block a user