PolymerElements / iron-swipeable-container

A container that allows any of its nested children to be swiped away.
25 stars 18 forks source link

Unsupported html comment tags #7

Closed nschurando closed 8 years ago

nschurando commented 8 years ago

The presence of an html comment tag within the iron-swipeable-container triggers the error below, and makes at least the next component not swipeable.

Uncaught TypeError: Cannot set property 'transitionProperty' of undefined             polymer.html:1193
  Polymer._addListeners                          @ iron-swipeable-container.html:150
  (anonymous function)                           @ iron-swipeable-container.html:138
  DomApi.EffectiveNodesObserver._callListener    @ polymer-mini.html:1418
  DomApi.EffectiveNodesObserver._callListeners   @ polymer-mini.html:1384
  DomApi.EffectiveNodesObserver._notify          @ polymer-mini.html:1338
  Debouncer.complete                             @ polymer.html:1231
  boundComplete                                  @ polymer.html:1210
  Polymer.Async._atEndOfMicrotask                @ polymer.html:1187
  window.MutationObserver.observe.characterData  @ polymer.html:1202

Below is a snippet of code that can be used to reproduce the error :

<iron-swipeable-container width-ratio="1">
  <!-- Card 1 -->
  <paper-card heading="Cards can have titles" class="blue swipe">
    [...]
  </paper-card>
</iron-swipeable-container>
notwaldorf commented 8 years ago

Ooops, that's my bad! Thanks for spotting it.