This is enough to render a modal anywhere within a form using
ViewField
ViewField
. However, when trying to do this in a
ViewColumn
ViewColumn
, I'm getting the following error:
Alpine Expression Error: isOpen is not defined
Alpine Expression Error: isOpen is not defined
___
I would usually run this in an action, but I am unable to run any custom js within the action. Anything within script tags in a custom view do not execute.
// test.blade.php<script>console.log('here') // this is ignoredfunction test() { console.log('hello world') // never gets called}</script><button onclick="test">Click!</button> // renders fine
// test.blade.php<script>console.log('here') // this is ignoredfunction test() { console.log('hello world') // never gets called}</script><button onclick="test">Click!</button> // renders fine
Does anyone know why this is the case on either issue and how I can fix? (Screenshot is of first issue, referencing ViewColumn modal)