Closed zepfietje closed 1 year ago
@zepfietje hello, can i open a pr on this? i was going to make a branch and make one but i dont have permission. Can you direct me how to make contributions please if im missing something, thanks
Check out our contribution guide: https://github.com/filamentphp/filament#contributing.
@zepfietje Please review my PR, thanks :)
Do we still need wire:loading.attr="disabled"
in form components? According to the docs,
Livewire automatically disables the submit button and all form inputs inside the
@sumardi not on fields I guess, but I think we need it in the submit button because other events can trigger a disabled state, like uploading a file through filepond for example
but good catch
@sumardi not on fields I guess, but I think we need it in the submit button because other events can trigger a disabled state, like uploading a file through filepond for example
but good catch
filepond use alpine x-bind:disabled
, not an issue if we remove wire:loading.attr="disabled"
. Because Livewire v3 automatically add disabled
to submit button and readonly
to form inputs.
@sumardi not on fields I guess, but I think we need it in the submit button because other events can trigger a disabled state, like uploading a file through filepond for example but good catch
filepond use alpine
x-bind:disabled
, not an issue if we removewire:loading.attr="disabled"
. Because Livewire v3 automatically adddisabled
to submit button andreadonly
to form inputs.
it uses x-bind:disabled only on the input IIRC, I think it does not apply to the submit button. The button should be disabled while uploading a file
There's a lot more cases than just fields inside forms. E.g. also text input columns on tables.
This bug is related to livewire v3, specifically wire-loading.js,
it should be fixed when the PR is merged.
Thanks @sakanjo!
Confirmed the main issue been fixed by the Livewire PR @sakanjo created. Thanks!
It does seem, however, that the toggle doesn't honor the disabled state. Reopening https://github.com/filamentphp/filament/issues/7370.
wire:loading.attr="disabled"
overrides conditional disabled state (found in at least checkbox list and radio components).