Open jakuborava opened 4 days ago
Any workaround for this ? modifying the stub or something ?
It is really frustrating
Hello! For now I'm using the following workaround instead of binding the modal to wire:model:
To open the modal, dispatch the following event (in my case I do it using Alpine and x-on:click instead of wire:click):
document.dispatchEvent(new CustomEvent('modal-show', { detail: { name: 'your-modal-name' } }))
To close the modal, you do the same but instead of 'modal-show' you have to dispatch a 'modal-close' event.
I tried to implement Data binding example from https://fluxui.dev/components/modal. Modal has an input, I type some text and if I do Cmd + A and backspace/delete, modal is automatically closed. Same happens when I delete all characters one by one using backspace/delete.
Livewire component code:
Livewire component view:
This is probably related to https://github.com/livewire/flux/issues/65.