Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant