PageSourceSearch

https://educared.fundaciontelefonica.com.pe/assets/controllers/file_input_clearer_controller-f67574aa.js

js fundaciontelefonica.com.pe collected 2026-10-02 06:43:41 UTC 448 bytes, 12 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3// Clears the value of a target file input before the form submission proceeds.
4// Useful when a button inside the same form needs to ensure no file is uploaded
5// even if the user previously selected one (e.g. a "Remove current logo" action).
6export default class extends Controller {
7  static targets = [ "input" ]
8
9  clear() {
10    this.inputTargets.forEach((input) => { input.value = "" })
11  }
12}

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.