ampproject / ampproject/amphtml

Storybook - Issue on amp-accordion with Bind that is specific to storybook

Open
#33,679 1 comment 0 reactions 1 assignee Claimed by @alanorozco View on GitHub
Stale Type: Bug
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

When an accordion section has an `expanded` attribute and also `amp-bind` binds to an `data-amp-bind-expanded` attribute, storybook throws the following error. Removing `expanded` fixes the error, but this should be supported. This does not throw an error on a normal test page (outside of storybook).

![image](https://user-images.githubusercontent.com/25626770/113905335-09825f80-97a1-11eb-84bd-2e5cb92eee76.png)

This PR shows a code example and the current fix: https://github.com/ampproject/amphtml/pull/33674/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.