-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix wire:dirty.remove
not restoring element once it is no longer dirty
#6759
Fix wire:dirty.remove
not restoring element once it is no longer dirty
#6759
Conversation
@PhiloNL thanks for the failing test! The issue is the shared function This works great for But in the scenario of So what we need to do is store the display value of the element when the directive is initialised, so it can be reverted back to that value. @calebporzio I've added the option to pass the element's initial display value to the Hope this helps! |
# Conflicts: # dist/livewire.min.js # dist/manifest.json
wire:dirty.remove
not restoring element after it no longer being dirty
wire:dirty.remove
not restoring element after it no longer being dirtywire:dirty.remove
not restoring element once it is no longer dirty
Dig it, thanks Josh! |
Hope this fix works for wire:loading.remove too. It has the same problem. Gonna test it next week |
@lucasromanojf oh really? I'll do a quick test. Have just tagged a release v3.0.4 with this fix. |
@lucasromanojf Edit: actually I was wrong, it all seems to be working happily to me. @lucasromanojf can you do a test and let me know? Thanks! |
But it is good to hear it is working, even with inline-block. This fix may have fixed it too. Last week I was doing some tests with a button labeled "Save" which should change to "Please wait...". "Please wait" was shown and "Save" was hidden (correct), but after loading finished, the button was empty ("please wait" was hidden correctly but "Save" was not shown) |
Sure, I'm on a trip but I will test it next week. Thanks!!! |
@lucasromanojf ah interesting! Yeah hopefully all sorted now. No worries, enjoy your trip! 🙂 |
Failing test for #6668.
The data is in-sync...
is shown on the initial load. When you check the checkbox, the message disappears but if you uncheck the checkbox theThe data is in-sync...
will not show again even though it's back in its original state. The same behavior occurs when using text inputs so It's not related to just checkboxes.