On the pallet lables modal, I have another livewire component which is utilising a Filament Table to display associated Pallet Labels. This is working to this point ( I assume this is the best method thus far? )
The issue I have: When I click 'Create Pallet Label' or the Edit button it SHOULD open a SECOND modal, however I get a js error
TypeError: Cannot read properties of undefined (reading 'dispatchEvent')
TypeError: Cannot read properties of undefined (reading 'dispatchEvent')
. If I click the button again it will then load modal and work as intended.
I wondered if 1) I am doing this the correct way or 2) ideas on fixing the error so it doesnt require two clicks