chore: prettier
This commit is contained in:
parent
8d24cc0ceb
commit
b450acf81d
6 changed files with 15 additions and 13 deletions
|
@ -33,7 +33,7 @@ export default class Orderable {
|
||||||
|
|
||||||
onDragStart(e) {
|
onDragStart(e) {
|
||||||
// e.target is the source node.
|
// e.target is the source node.
|
||||||
const realSrc = document.elementFromPoint(e.clientX, e.clientY);
|
const realSrc = document.elementFromPoint(e.clientX, e.clientY)
|
||||||
// Only allow drag from the handle
|
// Only allow drag from the handle
|
||||||
if (!realSrc.classList.contains('icon-drag')) {
|
if (!realSrc.classList.contains('icon-drag')) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|
|
@ -83,7 +83,7 @@ export const SCHEMA = {
|
||||||
easing: {
|
easing: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
impacts: [],
|
impacts: [],
|
||||||
default: false
|
default: false,
|
||||||
},
|
},
|
||||||
editinosmControl: {
|
editinosmControl: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { template } from "./utils.js"
|
import { template } from './utils.js'
|
||||||
|
|
||||||
export default class URLs {
|
export default class URLs {
|
||||||
constructor(serverUrls) {
|
constructor(serverUrls) {
|
||||||
|
|
|
@ -196,8 +196,11 @@ U.ToggleEditAction = U.BaseFeatureAction.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
onClick: function (e) {
|
onClick: function (e) {
|
||||||
if (this.feature._toggleEditing) this.feature._toggleEditing(e) // Path
|
if (this.feature._toggleEditing) {
|
||||||
else this.feature.edit(e) // Marker
|
this.feature._toggleEditing(e) // Path
|
||||||
|
} else {
|
||||||
|
this.feature.edit(e) // Marker
|
||||||
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -878,12 +878,11 @@ L.FormBuilder.MultiChoice = L.FormBuilder.Element.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
fetch: function () {
|
fetch: function () {
|
||||||
let value = (this.backup = this.toHTML())
|
this.backup = this.toHTML()
|
||||||
if (!this.container.querySelector(`input[type="radio"][value="${value}"]`))
|
let value = this.backup
|
||||||
value =
|
if (!this.container.querySelector(`input[type="radio"][value="${value}"]`)) {
|
||||||
typeof this.options.default !== 'undefined'
|
value = this.options.default !== undefined ? this.options.default : this.default
|
||||||
? this.options.default
|
}
|
||||||
: this.default
|
|
||||||
this.container.querySelector(`input[type="radio"][value="${value}"]`).checked = true
|
this.container.querySelector(`input[type="radio"][value="${value}"]`).checked = true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue