]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/4090'
authorTom Hughes <tom@compton.nu>
Wed, 12 Jul 2023 20:57:17 +0000 (21:57 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 12 Jul 2023 20:57:17 +0000 (21:57 +0100)
vendor/assets/iD/iD.js

index ea04f7592d3c400609b2feab4afa283846ffe5c2..d25b3398b8be23230aaaecfd3c6cc2b4742d9595 100644 (file)
   // 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",
       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);