1import { Controller } from "@hotwired/stimulus" 2 3export default class extends Controller { 4 static targets = ["submit"] 5 6 connect() { 7 this.initialData = new URLSearchParams(new FormData(this.element)).toString() 8 this.#updateSubmit() 9 } 10 11 change() { 12 this.#updateSubmit() 13 } 14 15 #updateSubmit() { 16 const changed = new URLSearchParams(new FormData(this.element)).toString() !== this.initialData 17 this.submitTarget.disabled = !changed 18 } 19}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.