From 9aa646bd03b7353a6943db80099376c7d1c68d63 Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Wed, 12 Jul 2023 22:19:43 +0200 Subject: [PATCH] Update to iD v2.26.1 --- vendor/assets/iD/iD.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vendor/assets/iD/iD.js b/vendor/assets/iD/iD.js index ea04f7592..d25b3398b 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.0", + version: "2.26.1", description: "A friendly editor for OpenStreetMap", main: "dist/iD.min.js", repository: "github:openstreetmap/iD", @@ -25793,7 +25793,11 @@ 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); -- 2.45.1