]> git.openstreetmap.org Git - rails.git/commitdiff
Update to iD v2.26.1
authorMartin Raifer <martin@raifer.tech>
Wed, 12 Jul 2023 20:19:43 +0000 (22:19 +0200)
committerMartin Raifer <martin@raifer.tech>
Wed, 12 Jul 2023 20:19:43 +0000 (22:19 +0200)
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);