diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bd5c36f1..0a3a71baf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,7 +35,39 @@ _Breaking developer changes, which may affect downstream projects or sites that [@xxxx]: https://github.com/xxxx --> +# Unreleased (2.27.0-dev) + +#### :tada: New Features +#### :sparkles: Usability & Accessibility +#### :scissors: Operations +#### :camera: Street-Level +#### :white_check_mark: Validation +#### :bug: Bugfixes +#### :earth_asia: Localization +#### :hourglass: Performance +#### :mortar_board: Walkthrough / Help +#### :hammer: Development + + +# 2.26.2 +##### 2023-Jul-13 + +* Fix broken in raw tag editor ([#9766], thanks [@k-yle]) + +[#9766]: https://github.com/openstreetmap/iD/pull/9766 + + +# 2.26.1 +##### 2023-Jul-12 + +* Fix crash when rendering an `email` UI field ([#9752]) + +[#9752]: https://github.com/openstreetmap/iD/issues/9752 + + # 2.26.0 +##### 2023-Jul-12 + #### :tada: New Features * Combo fields for tags with `yes/no` values now also display the `no` state and allow to toggle between the two states ([#7427]) #### :newspaper: News @@ -76,7 +108,7 @@ _Breaking developer changes, which may affect downstream projects or sites that * Upgrade OSM data dependencies: `id-tagging-schema` to v6.3, `osm-community-index` to 5.5.3 * Upgrade icon sets: `fortawesome` to v6.4, `temaki` to v5.4 * Upgrade `osm-auth` to v2.1, -* Upgrade dev dependecies, including the following major version upgrades: `glob` to v10, `marked` to v5, `cldr-core` and `cldr-localenames-full` to v43, `esbuild` to v0.18 +* Upgrade dev dependencies, including the following major version upgrades: `glob` to v10, `marked` to v5, `cldr-core` and `cldr-localenames-full` to v43, `esbuild` to v0.18 * Build icons from configured presets source and also process field value `icons` in `npm run build:data` [#8769]: https://github.com/openstreetmap/iD/pull/8769 diff --git a/modules/util/get_set_value.js b/modules/util/get_set_value.js index 597fa9b7c..1da96a135 100644 --- a/modules/util/get_set_value.js +++ b/modules/util/get_set_value.js @@ -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))); }