Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Toggle() function in <amp-selector> throws exception #1821

Open
Svenmay opened this issue Feb 8, 2019 · 1 comment
Open

Toggle() function in <amp-selector> throws exception #1821

Svenmay opened this issue Feb 8, 2019 · 1 comment
Assignees

Comments

@Svenmay
Copy link

Svenmay commented Feb 8, 2019

I just saw that the toggle() function of is throwing an error on every second click.

Console output is:

  • Action execution failed: AMP-SELECTOR toggle: Cannot read property 'removeAttribute' of undefined

This also happens on https://ampbyexample.com/components/amp-selector/. On that page go to "Actions" sections and click on "toggle(index=1)" multiple times. Every second click throws the exception in console.

image

Any other info needed from me? Just let me know :-)

@kul3r4
Copy link
Collaborator

kul3r4 commented Feb 8, 2019

@nainar who worked on ampproject/amphtml#13553: is this the expected behaviour? It seems it launches the error when nothing is selected

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants