Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
set and remove attribute
  • Loading branch information
processprocess committed Jan 19, 2022
commit 6251fd3c8d67b37c2a04bed7f7dc1e75e664d99b
7 changes: 4 additions & 3 deletions extensions/amp-story/1.0/pagination-buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ class PaginationButton {
'i-amphtml-story-button-hidden',
!isEnabled
);
this.element
.querySelector('button')
?.toggleAttribute('disabled', !isEnabled);
const button = this.element.querySelector('button');
isEnabled
? button.removeAttribute('disabled')
: button.setAttribute('disabled', '');
});
}

Expand Down