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.