mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-23 04:23:30 +01:00
Merge pull request #8288 from jleedev/preset-debounce
Debounce input events in the preset list.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { dispatch as d3_dispatch } from 'd3-dispatch';
|
||||
import { select as d3_select } from 'd3-selection';
|
||||
import _debounce from 'lodash-es/debounce';
|
||||
|
||||
import { presetManager } from '../presets';
|
||||
import { t, localizer } from '../core/localizer';
|
||||
@@ -122,7 +123,7 @@ export function uiPresetList(context) {
|
||||
.call(utilNoAuto)
|
||||
.on('keydown', initialKeydown)
|
||||
.on('keypress', keypress)
|
||||
.on('input', inputevent);
|
||||
.on('input', _debounce(inputevent));
|
||||
|
||||
if (_autofocus) {
|
||||
search.node().focus();
|
||||
|
||||
Reference in New Issue
Block a user