Skip to content
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

Cannot read property 'toggle' of undefined #84

Open
8 tasks done
ebatgerel opened this issue May 18, 2018 · 0 comments
Open
8 tasks done

Cannot read property 'toggle' of undefined #84

ebatgerel opened this issue May 18, 2018 · 0 comments

Comments

@ebatgerel
Copy link

ebatgerel commented May 18, 2018

Description

I have a trouble with using component.

Expected outcome

Collapse content should be expanded

Actual outcome

When i click the button its throws a error.

Live Demo

Here is my html template:

 <template is="dom-repeat" items="[[items]]">
         <div class="collapse-container">
             <button on-click="toggle">[[item.content.title]]</button>
             <iron-collapse id="collapse">
                   <div class="collapse-item">
                         [[item.answer]]
                   </div>
              </iron-collapse>
         </div>
 </template>

capture

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant