Fix method shown on setting disabled hover

This commit is contained in:
Jordan Blasenhauer 2024-05-22 13:28:55 +02:00
parent c4ddefbc6b
commit 7120dc1cad

View file

@ -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" : ""