->disabled() on dependant Select broken on create page, works fine on edit modal.
I have the following two Selects, Contact is a dependant select based upon the Company selected. The below code works perfectly on an edit modal, but doesn't work on the create page. On the create page it starts as disabled, then once I select a Company, it becomes clickable but nothing happens (not even the usual "type ... to search" appears. No console errors and I can see in Clockwork that the requests to the database look correct.
Anyone got any ideas?
4 Replies
If you move the
->disabled(
to bottom what happens then?
So below the ->relationship
same as before unfortunately š¦ here is a comparison of the two fields after selecting a company. Both start out as disabled, then the working on the left is the edit modal and the right is the create page
have you tried
empty
instead of filled
?
!filled($get('company_id')) -> !empty($get('company_id'))yep, same behavior. I swapped it to filled after empty wasn't working