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

Failure when writing HTML in preview editor #1464

Closed
fxha opened this issue Oct 9, 2019 · 0 comments
Closed

Failure when writing HTML in preview editor #1464

fxha opened this issue Oct 9, 2019 · 0 comments
Labels
🔭 area/muya 🐛 bug Something isn't working
Projects

Comments

@fxha
Copy link
Contributor

fxha commented Oct 9, 2019

Description

An exception occurs when writing HTML tags and pressing enter to autocomplete the tag.

Steps to reproduce

  1. Write some HTML like <div> and press Enter

Stack Trace:

TypeError: Cannot read property 'text' of null
    at ContentState.checkNeedRender (webpack-internal:///./src/muya/lib/contentState/updateCtrl.js:52:95)
    at ContentState.clickHandler (webpack-internal:///./src/muya/lib/contentState/clickCtrl.js:211:35)
    at HTMLDivElement.handler (webpack-internal:///./src/muya/lib/eventHandler/clickEvent.js:204:20)

TypeError: Cannot read property 'type' of null
    at eval (webpack-internal:///./src/muya/lib/contentState/paragraphCtrl.js:36:153)
    at Array.filter (<anonymous>)
    at ContentState.selectionChange (webpack-internal:///./src/muya/lib/contentState/paragraphCtrl.js:36:74)
    at Muya.eval (webpack-internal:///./src/muya/lib/index.js:61:50)
    at eval (webpack-internal:///./src/muya/lib/eventHandler/keyboard.js:102:19)

Versions

  • Mark Text: develop
  • Operating system: all
@fxha fxha added 🐛 bug Something isn't working 🔭 area/muya labels Oct 9, 2019
@fxha fxha added this to TO-DO in 0.16.0 Oct 10, 2019
@Jocs Jocs moved this from TO-DO to In Progress in 0.16.0 Oct 14, 2019
@Jocs Jocs closed this as completed Oct 20, 2019
@Jocs Jocs moved this from In Progress to Done in 0.16.0 Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔭 area/muya 🐛 bug Something isn't working
Projects
No open projects
0.16.0
  
Done
Development

No branches or pull requests

2 participants