Tab file field not enabled
I have a function defined to disable the whole tab and only get enabled when certain conditions are met but file upload field is not enabled while other fields are enabled:
8 Replies
Please read the #✅┊rules about how to format your code properly.
anyone?
how does that
interview
look? does dd($get('interview'))
return anything in the disabled method?Shouldn't be an issue, if it works with the other fields?
Might be possible that there is an issue to enable/disable SpatieMediaLibrary similar to Select.
Maybe it just doesn't have
live()
who knows🤷♂️live() is not working although when i refresh the page the field then get enabled
can we fix it , if the issue as you said in SpatieMediaLibrary
Would it help to copy the disabled() logic into the SpatieMediaLibrary component too? Not ideal, but perhaps worth exploring.
This also not working I have to refresh the page to get it enabled
alternative solution would be to redirect page on view as it refresh the page the it is going to enable. but by default view is redirect on same edit page, and its not get enabled although other fields enabled