Sha256: fe0744fd4c092871c330c5820f0b4032271fb8f2d79da261619d512536d63250
Contents?: true
Size: 536 Bytes
Versions: 46
Compression:
Stored size: 536 Bytes
Contents
import ApplicationController from "satis/controllers/application_controller" export default class InputComponentController extends ApplicationController { static targets = ["input"] static values = {} connect() { super.connect() if (this.hasInputTarget) { document.addEventListener("wheel", function (event) { if (document.activeElement.type === "number" && document.activeElement.classList.contains("noscroll")) { document.activeElement.blur() } }) } } disconnect() {} }
Version data entries
46 entries across 46 versions & 1 rubygems