updating the state of custom field
I can' t get the state to update, I've tried this method, as well as just calling
$this->state($updtedState);
without the $component
.3 Replies
Does anybody have any ideas on this? Sorry to be needy, but i've tried several things, including watching the laracasts tutorial on the color picker custom field and it didn't really give me a direction to go in. Currently scouring github projects trying to figure out what I may be missing. Really haven't done much with custom fields, so I'm a bit out of my depth. It seems like what I'm doing should work..
Can you verify the $state is actually not null since you are strict checking? Just my first thought. Like if it’s an empty string it won’t equate to null.
it's getting past the conditional, because my new value is getting logged. It literally just isn't setting the state for some reason.
Would anything about my blade file be causing it to not get handled? Doesn't seem like it, but I'm grasping at straws.
If I do this where I'm adding the custom field, I get the correct state, it's just not reflecting that in the input field itself...
ok, i put it on a blank page and it works, so I guess it's not the custom field, it's something I'm doing wrong with my
$data
array.