PageSourceSearch

https://kluvos.com/assets/controllers/form_validation_controller-c…b0ee42d073ce5c07f2d5554a81e908dcc3a41256.js

js kluvos.com collected 2026-10-02 06:23:46 UTC 491 bytes, 18 lines download raw bytes

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.