mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix method shown on setting disabled hover
This commit is contained in:
parent
c4ddefbc6b
commit
7120dc1cad
1 changed files with 2 additions and 2 deletions
|
|
@ -283,7 +283,7 @@ class DisabledPop {
|
|||
//for checkbox and regular inputs
|
||||
if (
|
||||
e.target.tagName === "INPUT" &&
|
||||
e.target.hasAttribute("data-default-method")
|
||||
e.target.hasAttribute("data-default-method") || e.target.hasAttribute("data-method")
|
||||
) {
|
||||
const el = e.target;
|
||||
this.showPopup(el, "input");
|
||||
|
|
@ -317,7 +317,7 @@ class DisabledPop {
|
|||
.querySelector("button[data-setting-password]")
|
||||
? true
|
||||
: false;
|
||||
const method = el.getAttribute("data-default-method");
|
||||
const method = el.getAttribute("data-method") || el.getAttribute("data-default-method");
|
||||
const popupHTML = `
|
||||
<div data-disabled-info class="${
|
||||
type === "select" ? "translate-y-2" : ""
|
||||
|
|
|
|||
Loading…
Reference in a new issue