Skip to content

Commit ef9d93c

Browse files
committedJul 13, 2023
backport #9766 as v2.26.2
1 parent 59c8b79 commit ef9d93c

File tree

7 files changed

+28
-19
lines changed

7 files changed

+28
-19
lines changed
 

‎CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ _Breaking developer changes, which may affect downstream projects or sites that
3636
-->
3737

3838

39+
# 2.26.2
40+
##### 2023-Jul-13
41+
42+
* Fix broken in raw tag editor ([#9766], thanks [@k-yle])
43+
44+
[#9766]: https://github.com/openstreetmap/iD/issues/9766
45+
46+
3947
# 2.26.1
4048
##### 2023-Jul-12
4149

@@ -85,7 +93,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
8593
* Upgrade OSM data dependencies: `id-tagging-schema` to v6.3, `osm-community-index` to 5.5.3
8694
* Upgrade icon sets: `fortawesome` to v6.4, `temaki` to v5.4
8795
* Upgrade `osm-auth` to v2.1,
88-
* 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
96+
* 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
8997
* Build icons from configured presets source and also process field value `icons` in `npm run build:data`
9098

9199
[#8769]: https://github.com/openstreetmap/iD/pull/8769

‎dist/iD.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -22762,7 +22762,7 @@
2276222762
// package.json
2276322763
var package_default = {
2276422764
name: "iD",
22765-
version: "2.26.1",
22765+
version: "2.26.2",
2276622766
description: "A friendly editor for OpenStreetMap",
2276722767
main: "dist/iD.min.js",
2276822768
repository: "github:openstreetmap/iD",
@@ -25793,11 +25793,7 @@
2579325793
return value2 === null || value2 === void 0 ? valueNull : typeof value2 === "function" ? valueFunction : valueConstant;
2579425794
}
2579525795
function stickyCursor(func) {
25796-
const supportedTypes = ["text", "search", "url", "tel", "password"];
2579725796
return function() {
25798-
if (!supportedTypes.includes(this.type)) {
25799-
return;
25800-
}
2580125797
const cursor = { start: this.selectionStart, end: this.selectionEnd };
2580225798
func.apply(this, arguments);
2580325799
this.setSelectionRange(cursor.start, cursor.end);
@@ -25809,6 +25805,10 @@
2580925805
if (shouldUpdate === void 0) {
2581025806
shouldUpdate = (a, b) => a !== b;
2581125807
}
25808+
const supportedTypes = ["text", "search", "url", "tel", "password"];
25809+
if (!supportedTypes.includes(this.type)) {
25810+
return selection2.each(setValue(value, shouldUpdate));
25811+
}
2581225812
return selection2.each(stickyCursor(setValue(value, shouldUpdate)));
2581325813
}
2581425814

‎dist/iD.js.map

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/iD.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/iD.min.js.map

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎modules/util/get_set_value.js

+7-6
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,7 @@ export function utilGetSetValue(selection, value, shouldUpdate) {
2828
}
2929

3030
function stickyCursor(func) {
31-
// only certain input element types allow manipulating the cursor
32-
// see https://html.spec.whatwg.org/multipage/input.html#concept-input-apply
33-
const supportedTypes = ['text', 'search', 'url', 'tel', 'password'];
3431
return function() {
35-
if (!supportedTypes.includes(this.type)) {
36-
return;
37-
}
3832
const cursor = { start: this.selectionStart, end: this.selectionEnd };
3933
func.apply(this, arguments);
4034
this.setSelectionRange(cursor.start, cursor.end);
@@ -49,5 +43,12 @@ export function utilGetSetValue(selection, value, shouldUpdate) {
4943
shouldUpdate = (a, b) => a !== b;
5044
}
5145

46+
// only certain input element types allow manipulating the cursor
47+
// see https://html.spec.whatwg.org/multipage/input.html#concept-input-apply
48+
const supportedTypes = ['text', 'search', 'url', 'tel', 'password'];
49+
if (!supportedTypes.includes(this.type)) {
50+
return selection.each(setValue(value, shouldUpdate));
51+
}
52+
5253
return selection.each(stickyCursor(setValue(value, shouldUpdate)));
5354
}

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iD",
3-
"version": "2.26.1",
3+
"version": "2.26.2",
44
"description": "A friendly editor for OpenStreetMap",
55
"main": "dist/iD.min.js",
66
"repository": "github:openstreetmap/iD",

0 commit comments

Comments
 (0)