Skip to content

Commit

Permalink
fix: closed mode
Browse files Browse the repository at this point in the history
  • Loading branch information
knownasilya committed Oct 4, 2020
1 parent 8c58f77 commit 492106f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 1 addition & 5 deletions app/templates/components/shadow-dom.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
<Tag
{{did-insert this.setupRoot}}
...attributes
>
{{#unless this.shadow}}
{{yield}}
{{/unless}}
</Tag>
/>
{{/let}}

{{#if this.shadow}}
Expand Down
7 changes: 7 additions & 0 deletions tests/dummy/app/components/test-shadow/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,11 @@ Outside the shadow
<button {{action this.clicked}}>Clicked</button>
{{if this.wasClicked 'Clicked' 'Not Clicked'}}
</div>
</ShadowDom>

<hr>
closed<br>

<ShadowDom id='internal' @mode='closed'>
<div class='block'>template block text</div>
</ShadowDom>

0 comments on commit 492106f

Please sign in to comment.