You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
web-twig will have an isOpen pass that sets the attribute data to a specific value, or rather aria attribute
give Modal a props isOpen that will set the open attribute and verify that our JS plugin works with it correctly
The JS plugin looks to see if the attribute open exists and calls showModal - only on initialization (constructor)!
The text was updated successfully, but these errors were encountered:
It is not clear to me what the goal is. I.e. do I need to set Modal default as open? So when the page loads, Modal will open itself? The constructor of the Modal plugin has an argument isShown, i.e. new Modal(true). So more likely, maybe it's missing to complete the documentation.
Yes, that's right. We want to be able to have Twig Modal open itself when the page loads, once we pass the isOpen parameter, so we don't have to figure it out ourselves in TS.
react has isOpen, twig no
give Modal a props isOpen that will set the
open
attribute and verify that our JS plugin works with it correctlyThe JS plugin looks to see if the attribute open exists and calls showModal - only on initialization (constructor)!
The text was updated successfully, but these errors were encountered: