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

Nesting within a card returns an error due to undefined section #142

Open
knownasilya opened this issue Sep 26, 2017 · 0 comments
Open

Nesting within a card returns an error due to undefined section #142

knownasilya opened this issue Sep 26, 2017 · 0 comments

Comments

@knownasilya
Copy link
Contributor

knownasilya commented Sep 26, 2017

screen shot 2017-09-26 at 12 12 11 am

TypeError: Cannot read property 'isNested' of null
    at editor.js:1188
    at Editor.run (editor.js:755)
    at Editor.insertCard (editor.js:1176)
    at Class._addCard (component.js:351)
    at Class.addCard (component.js:113)
    at Backburner.join (backburner.js:567)
    at Function.run$1.join (ember-metal.js:4370)
    at action.js:388
    at exports.flaggedInstrument (ember-metal.js:3797)
    at EmptyObject.addCard (action.js:387)

My code looks something like this:

<section>
  <button onclick={{action editCard}} type='button'>Edit</button>
</section>
{{mobiledoc-editor}}

Full code is here https://github.com/knownasilya/ember-mobiledoc-grid/blob/master/addon/components/grid-cards-row/template.hbs

This is within a display card. The card is added to the editor, when I click inside the card and try to addCard inside this nested editor, it errors in this way.

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

No branches or pull requests

1 participant