-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(text-cta): prevent order of operations issues #11911
fix(text-cta): prevent order of operations issues #11911
Conversation
Deploy preview created for package Built with commit: c52a586e0166b484e25b09bfdcba31b39e0b68bd |
Deploy preview created for package Built with commit: c52a586e0166b484e25b09bfdcba31b39e0b68bd |
Deploy preview created for package Built with commit: c52a586e0166b484e25b09bfdcba31b39e0b68bd |
Deploy preview created for package Built with commit: c52a586e0166b484e25b09bfdcba31b39e0b68bd |
Deploy preview created for package Built with commit: c52a586e0166b484e25b09bfdcba31b39e0b68bd |
Deploy preview created for package Built with commit: c52a586e0166b484e25b09bfdcba31b39e0b68bd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good to me. Logically it makes sense. I've also tested on the reported pages using Requestly and the CDN links here, it works!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified in codepen reproduction. Thanks!
https://codepen.io/andy-blum/pen/WNqbNKP/b4963942ffd9dcdc93c2d3a71a9eda85?editors=1010
Related Ticket(s)
Jira
Description
An issue where the CTA on cards with videos is not being populated on some pages is being caused by an order of operation issue where the element is making calls tho an event listener that is not yet defined.
This PR is to ensure the correct order of execution
Changelog
Changed
Added
customElements.whenDefined()
to the video mixin to make sure the event only triggers after all componets needed are loaded.