I’m having a strange issue with modal buttons in a Grid field with my add-on field type Treasury. Specifically, usually the first request for the modal fails. The modal comes up but has no content. The button for the modal has an m-link
class and an href
to fetch the content from. I’ve documented the issue in a short video: https://vimeo.com/252369002/e26b201215
Any thoughts?
Yeah so, because it’s been so long since I set that up and worked with the EE CP modals I had the impression that opening the modal and having the href
on the modal button would prompt the modal to get the contents from that href
. That was incorrect, I was actually doing that with my own code. Apparently I had a problem with binding too early and had a timeout on my methods so things were not binding right away. I added code to make the binding happen right away, and left the timeout in place to confirm that the bind actually happened.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.