Reactive ->live() not updating ->helperText and/or ->label() values
Title says it all - my code below, am I missing something blindingly obvious? I'd expect the title and helper text to update on the
title
field when the type
field changes.
12 Replies
do you get this too?
seems type dosne have a property or mapped to a state path
Nope, I have no errors in the console
are you in a resource or a custom page?
I tested in custom page
I'm in a resource (it's quite deeply nested)
My Enum
try dd, see what is the data,
I've tried in the top level resource with the same result - so I don't believe it's to do with the nested respources
but that then prevents any further execution
Pushing the output to
ray
the value is updatingSolution
the values of the select
single,options
so change the condetion to
->label(fn (Get $get): string => ($get('type') == MenuItemTypes::OPTIONS->value) ? 'Options title' : 'Title')
get the keys of the selected item
MenuItemTypes::OPTIONS->value
Thank you! I knew it was something stupid. Appreciate your help, karma++