Using querySelector to find nested elements inside a Polymer template returns null

前端 未结 2 796
萌比男神i
萌比男神i 2020-12-08 15:36

I\'m trying to use paper-tabs inside new element (tabs-list) but after print tabs I can\'t use querySelector to change selected one.

Element code (withou

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-08 16:32

          
    

    And to toggle the iron-collapse elements inside the dom-repeat I use

     _showdetail: function(e){
        Polymer.dom(e.currentTarget).querySelector('#collapse').toggle();
    },
    

提交回复
热议问题