From: Martin Raifer Date: Thu, 13 Jul 2023 12:04:21 +0000 (+0200) Subject: Update to iD v2.26.2 X-Git-Tag: live~1144^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/cb6d528ecb9abe916e11c607038290435e6b35d9?hp=a3b7de3ec937adddba06dcdadee8204266f8a908 Update to iD v2.26.2 --- diff --git a/vendor/assets/iD/iD.js b/vendor/assets/iD/iD.js index d25b3398b..ad4c20493 100644 --- a/vendor/assets/iD/iD.js +++ b/vendor/assets/iD/iD.js @@ -22762,7 +22762,7 @@ // package.json var package_default = { name: "iD", - version: "2.26.1", + version: "2.26.2", description: "A friendly editor for OpenStreetMap", main: "dist/iD.min.js", repository: "github:openstreetmap/iD", @@ -25793,11 +25793,7 @@ return value2 === null || value2 === void 0 ? valueNull : typeof value2 === "function" ? valueFunction : valueConstant; } function stickyCursor(func) { - const supportedTypes = ["text", "search", "url", "tel", "password"]; return function() { - if (!supportedTypes.includes(this.type)) { - return; - } const cursor = { start: this.selectionStart, end: this.selectionEnd }; func.apply(this, arguments); this.setSelectionRange(cursor.start, cursor.end); @@ -25809,6 +25805,10 @@ if (shouldUpdate === void 0) { shouldUpdate = (a, b) => a !== b; } + const supportedTypes = ["text", "search", "url", "tel", "password"]; + if (!supportedTypes.includes(this.type)) { + return selection2.each(setValue(value, shouldUpdate)); + } return selection2.each(stickyCursor(setValue(value, shouldUpdate))); }