Skip to content

Commit

Permalink
1000th fix after cherry-pick
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Anisimov committed Jun 3, 2020
1 parent 7d4c5dd commit ecfc535
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,16 @@

<dom-module id="hidden-template">
<template>
<div id='child' hidden>Foo</div>
<div id='hidden-child' hidden>Foo</div>
<div id='child'>Bar</div>
<button on-click="updateVisibility" id='visibility'>Update Visibility</button>
<button on-click="updateHidden" id="hidden">Update Hidden Attribute</button>
</template>

<script>
class HiddenTemplate extends Polymer.Element {
static get is() {
return 'hidden-template'
}

updateHidden(){
this.$['child'].hidden=!this.$['child'].hidden;
}
}
customElements.define(HiddenTemplate.is, HiddenTemplate);
</script>
Expand Down

0 comments on commit ecfc535

Please sign in to comment.