PageSourceSearch

https://filament.com/assets/controllers/reset_form_controller-5328e0af.js

js filament.com collected 2026-09-25 14:03:21 UTC 528 bytes, 24 lines download raw bytes

1import TurboMorphEnabledController from "controllers/turbo_morph_enabled_controller"
2
3export default class extends TurboMorphEnabledController {
4  connect() {
5    super.connect()
6
7    this.element.addEventListener("turbo:submit-end", this.reset)
8  }
9
10  disconnect() {
11    super.disconnect()
12
13    this.element.removeEventListener("turbo:submit-end", this.reset)
14  }
15
16  reset = (event) => {
17    if (event.detail.success) {
18      const form = this.element.closest("form")
19      if (form) {
20        form.reset()
21      }
22    }
23  }
24}

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.