Skip to content

Commit

Permalink
fix attribute selector (#37633)
Browse files Browse the repository at this point in the history
  • Loading branch information
processprocess committed Feb 10, 2022
1 parent dbc28dc commit 498f360
Showing 1 changed file with 2 additions and 6 deletions.
@@ -1,5 +1,5 @@
import {devAssert} from '#core/assert';
import {removeElement} from '#core/dom';
import {removeElement, toggleAttribute} from '#core/dom';
import * as Preact from '#core/dom/jsx';
import {closest, closestAncestorElementBySelector} from '#core/dom/query';
import {toggle} from '#core/dom/style';
Expand Down Expand Up @@ -340,11 +340,7 @@ export class AmpStoryPageAttachment extends DraggableDrawer {
* @param {boolean} isActive
*/
setOpenAttachmentActive(isActive) {
if (isActive) {
this.openAttachmentEl_.setAttribute('active', '');
} else {
this.openAttachmentEl_.removeAttribute('äctive');
}
toggleAttribute(this.openAttachmentEl_, 'active', isActive);
}

/**
Expand Down

0 comments on commit 498f360

Please sign in to comment.