1import { Controller } from "@hotwired/stimulus"; 2 3export default class extends Controller { 4 static targets = ["submitButton"]; 5 6 connect() { 7 const select = this.element.querySelector("select"); 8 if (select && this.hasSubmitButtonTarget) { 9 this.submitButtonTarget.disabled = !select.value; 10 } 11 } 12 13 checkSelection(event) { 14 const selectElement = event.target; 15 const selectedValue = selectElement.value; 16 this.submitButtonTarget.disabled = !selectedValue; 17 } 18};
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.