Refresh hint visibility after $set()
I have a hint that is conditionally visible. After setting a value in the hint action, the hint should be hidden again, but it only works after pressing the button twice.
The reason is, that after calling $set(), the hintAction is apparently called before the value is updated, such that $get() will return the previous value.
How can I get the correct (newly set) value inside the callback such that it returns null correctly?
2 Replies
Unfortunately, I still cannot fix this error by myself.
I have thought about, maybe there is some possibility to call "refresh!" on the Livewire component (the TextInput) inside the hintAction or something else.
Any suggestions?
You likely haven't mounted the form
I asume this is outside the admin panel?