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
We have two modals on our page. Both have an method called print that dispatches a browser event. The browser event has the same name. It appears that this propagates to each modal that's added to our page and listens to the event in its rendered view, even when the modal is not active.
Is this expected? The workaround (or solution) is pretty easy as we just renamed the browser event, but I thought I'd ask just to get a better understanding.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We have two modals on our page. Both have an method called
print
that dispatches a browser event. The browser event has the same name. It appears that this propagates to each modal that's added to our page and listens to the event in its rendered view, even when the modal is not active.Is this expected? The workaround (or solution) is pretty easy as we just renamed the browser event, but I thought I'd ask just to get a better understanding.
Beta Was this translation helpful? Give feedback.
All reactions