Skip to content

Commit

Permalink
[MB] CSK | Make do not use disable atrribute instead of remove()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ponchale committed Mar 25, 2024
1 parent 1b20335 commit dfaffa6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ const buildShortCutkeyFunctions = {
disableAllCustomKeyShortcutElemets() {
let keyElems = document.querySelectorAll(".floorpCustomShortcutKey");
for (let keyElem of keyElems) {
keyElem.disabled = true;
keyElem.remove();
}
},

enableAllCustomKeyShortcutElemets() {
let keyElems = document.querySelectorAll(".floorpCustomShortcutKey");
for (let keyElem of keyElems) {
keyElem.disabled = false;
keyElem.removeAttribute("disabled")
}
},

Expand Down

0 comments on commit dfaffa6

Please sign in to comment.