Closing tab after saving changes from EditResource
I am opening an EditResource page in a new tab from the front end. Is it possible to also close the tab once the user has saved changes? I tried dispatching an event from
Cancel was easier:
getSaveFormAction action's after method but I can't get the event to fire. Just "livewire:init" shows up in console. Cancel was easier:
Solution
Ok I sort-of managed to do this using
For some reason, the event was not dispatched at all either using your example or
BUT you must be opening the tab with JS (I'm assuming that what you mean by "I am opening ... a new tab from the front end"
Anyway, hope it helps
For some reason, the event was not dispatched at all either using your example or
BUT you must be opening the tab with JS (I'm assuming that what you mean by "I am opening ... a new tab from the front end"
Anyway, hope it helps
