]> git.openstreetmap.org Git - rails.git/commitdiff
Update to iD v2.26.2
authorMartin Raifer <martin.raifer@heigit.org>
Thu, 13 Jul 2023 12:04:21 +0000 (14:04 +0200)
committerMartin Raifer <martin.raifer@heigit.org>
Thu, 13 Jul 2023 12:09:43 +0000 (14:09 +0200)
vendor/assets/iD/iD.js

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