Remove the buggy slider hover hide, prevents text selection from working correctly

This commit is contained in:
cmdr2 2023-07-15 23:15:39 +05:30
parent 0d610c5393
commit 74e7c35885

View File

@ -2269,14 +2269,14 @@ function createLoRAEntries() {
createLoRAEntries() createLoRAEntries()
// chrome-like spinners only on hover // chrome-like spinners only on hover
function showSpinnerOnlyOnHover(e) { // function showSpinnerOnlyOnHover(e) {
e.addEventListener("mouseenter", () => { // e.addEventListener("mouseenter", () => {
e.setAttribute("type", "number") // e.setAttribute("type", "number")
}) // })
e.addEventListener("mouseleave", () => { // e.addEventListener("mouseleave", () => {
e.removeAttribute("type") // e.removeAttribute("type")
}) // })
e.removeAttribute("type") // e.removeAttribute("type")
} // }
document.querySelectorAll("input[type=number]").forEach(showSpinnerOnlyOnHover) // document.querySelectorAll("input[type=number]").forEach(showSpinnerOnlyOnHover)