mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Move lib/d3.combobox.js -> ui/combobox.js
As with other things from this lib/ folder, little original code remains and turning these things into reusable d3 plugins is not a priority.
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
import _uniqBy from 'lodash-es/uniqBy';
|
||||
|
||||
import { dispatch as d3_dispatch } from 'd3-dispatch';
|
||||
import { d3combobox as d3_combobox } from '../lib/d3.combobox.js';
|
||||
|
||||
import { t } from '../util/locale';
|
||||
import { svgIcon } from '../svg';
|
||||
import { uiField } from './field';
|
||||
import { uiFormFields } from './form_fields';
|
||||
import { uiCombobox, uiField, uiFormFields } from './index';
|
||||
import { utilRebind, utilTriggerEvent } from '../util';
|
||||
|
||||
|
||||
@@ -80,7 +78,7 @@ export function uiChangesetEditor(context) {
|
||||
});
|
||||
|
||||
commentField
|
||||
.call(d3_combobox()
|
||||
.call(uiCombobox()
|
||||
.container(context.container())
|
||||
.caseSensitive(true)
|
||||
.data(_uniqBy(comments, 'title'))
|
||||
|
||||
Reference in New Issue
Block a user