{"version":3,"file":"reset_frame_src_controller-Dtyuttfs.js","sources":["../../../app/javascript/controllers/reset_frame_src_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\"\n\n// there is a bug within turbo that doesn't let you navigate\n// from a frame more than once, to fix this you have to reset the frame\n// src and all works. this is a monkey patch. to use it\n// place it directly on a frame, data-controller=\"reset-frame-src\"\n// data-action=\"turbo:submit-end->reset-frame-src#reset\"\n\nexport default class extends Controller {\n reset() {\n this.element.src = \"\"\n }\n}\n"],"names":["reset_frame_src_controller","Controller"],"mappings":"wCAQe,MAAKA,UAASC,CAAW,CACtC,OAAQ,CACN,KAAK,QAAQ,IAAM,EACvB,CACA"}