Update to iD v2.26.1
This commit is contained in:
parent
0a8dae77fb
commit
9aa646bd03
1 changed files with 5 additions and 1 deletions
6
vendor/assets/iD/iD.js
vendored
6
vendor/assets/iD/iD.js
vendored
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue