mirror of
https://github.com/umap-project/umap.git
synced 2025-04-30 20:12:37 +02:00
whore: prettier
This commit is contained in:
parent
b36f5d1ce3
commit
8967ab5901
4 changed files with 7 additions and 11 deletions
|
@ -21,7 +21,7 @@ export class Panel {
|
|||
}
|
||||
|
||||
isOpen() {
|
||||
return this.container.classList.contains("on")
|
||||
return this.container.classList.contains('on')
|
||||
}
|
||||
|
||||
open({ content, className, actions = [] } = {}) {
|
||||
|
|
|
@ -943,9 +943,8 @@ L.FormBuilder.MultiChoice = L.FormBuilder.Element.extend({
|
|||
}
|
||||
const choices = this.getChoices().map(([value, label]) => value)
|
||||
if (choices.includes(value)) {
|
||||
this.container.querySelector(
|
||||
`input[type="radio"][value="${value}"]`
|
||||
).checked = true
|
||||
this.container.querySelector(`input[type="radio"][value="${value}"]`).checked =
|
||||
true
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -548,7 +548,6 @@ U.Map = L.Map.extend({
|
|||
|
||||
initShortcuts: function () {
|
||||
const globalShortcuts = function (e) {
|
||||
|
||||
if (e.key === 'Escape') {
|
||||
if (this.dialog.visible) {
|
||||
this.dialog.close()
|
||||
|
@ -576,8 +575,6 @@ U.Map = L.Map.extend({
|
|||
/* Edit mode only shortcuts */
|
||||
if (!this.hasEditMode()) return
|
||||
|
||||
|
||||
|
||||
// Edit mode Off
|
||||
if (!this.editEnabled) {
|
||||
switch (e.key) {
|
||||
|
|
Loading…
Reference in a new issue