Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: this._fragment is null #917

Closed
bwbroersma opened this issue Nov 10, 2017 · 1 comment · Fixed by #921
Closed

TypeError: this._fragment is null #917

bwbroersma opened this issue Nov 10, 2017 · 1 comment · Fixed by #921

Comments

@bwbroersma
Copy link
Contributor

bwbroersma commented Nov 10, 2017

<!-- App.html -->
{{#if show}}
  <Nested bind:show/>
{{else}}
  <button on:click="set({show:true})">Show it</button>
{{/if}}
<script>
  import Nested from './Nested.html';
  export default {
    components: {
      Nested
    }
  };
</script>
<!-- Nested.html -->
<p>Nested component with button <button on:click="set({show:false})">Hide it</button></p>

(see REPL)

Now clicking "Hide it" will trigger TypeError: this._fragment is null in function _set(newState), which is called twice and the second time this._fragment is null.

@Rich-Harris
Copy link
Member

Fixed in 1.41.4, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants