mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-03 13:38:04 +02:00
Merge branch 'develop' into add_mapilio_data
This commit is contained in:
@@ -43,5 +43,12 @@ export function utilGetSetValue(selection, value, shouldUpdate) {
|
||||
shouldUpdate = (a, b) => a !== b;
|
||||
}
|
||||
|
||||
// only certain input element types allow manipulating the cursor
|
||||
// see https://html.spec.whatwg.org/multipage/input.html#concept-input-apply
|
||||
const supportedTypes = ['text', 'search', 'url', 'tel', 'password'];
|
||||
if (!supportedTypes.includes(this.type)) {
|
||||
return selection.each(setValue(value, shouldUpdate));
|
||||
}
|
||||
|
||||
return selection.each(stickyCursor(setValue(value, shouldUpdate)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user