Open Reefcrazed opened 1 month ago
I just found a similar issue. If I have data in the grid and there is a validation error, but then I call a delete on the row in eloquent, the row does delete but you can no longer edit the table, all changes are locked out until I refresh the browser window.
Have you searched through other issues to see if your problem is already reported or has been fixed?
Yes, I did not find it.
Did you read the documentation?
Yes, I did not find it.
Have you tried to publish the views?
Yes - I didn't work.
Is there an error in the console?
No
PHP Version
8.3.0
PowerGrid
6.0.0.
Laravel
11.28
Livewire
3.65.9
Alpine JS
3.4.2
Theme
Tailwind 3.x
Describe the bug.
I have a powergrid populated with an eloquent datasource. We have a dropdown connected via livewire, basically a date filter. Lets say I am on 2023 and the data in powergrid is filtered through that year. I do an inline edit on row 1 of the data and that fails validation. Then I change the dropdown to 2024 and new data is loaded into the powergrid. At this point I cannot edit any data in the powergrid because it still seems to remember that validation has failed. The only way I can edit the grid is to either refresh the browser or change the dropdown to 2023.
If there is a built in function to clear this error I cannot find it. I tried $this->clearValidation() but that did not work. Also as a note, the documentation mentions $this->fillData() but that function does not seem to exist in v6.0.0, I seem to remember it being there in the prior release.
To Reproduce...
First click on "FOO" then....
Extra information