-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
🐛 [amp story] Change toggleAttribute to set/removeAttribute #37420
Conversation
Hey @gmajoulet! These files were changed:
Hey @mszylkowski! These files were changed:
Hey @newmuis! These files were changed:
|
extensions/amp-story-page-attachment/0.1/amp-story-draggable-drawer.js
Outdated
Show resolved
Hide resolved
@@ -810,6 +810,7 @@ const forbiddenTermsSrcInclusive = { | |||
'\\.pageXOffset(?!_)': bannedTermsHelpString, | |||
'\\.pageYOffset(?!_)': bannedTermsHelpString, | |||
'\\.innerWidth(?!_)': bannedTermsHelpString, | |||
'\\.toggleAttribute(?!_)': 'please use `toggleAttribute()` from core/dom', |
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.
@jridgewell I feel like we should add this to forbidden terms to prevent future errors. WDYT?
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.
SGTM.
toggleAttribute is not widely supported so it fails on multiple platforms.
This PR uses the toggleAttribute utility function instead.
Fixes #120, #93