You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you select multiple lines and delete them, the moment you click on another line makes everything disappear. Then, entering ESC just shows the content of the file again, with the previously deleted lines undeleted.
Can you reproduce the issue?
Steps to reproduce
Select multiple lines, with a title in it
Press delete again to align the next title
Text should disappear
Press ESC to view text again, but to see your deleted text back
Expected behavior:
The lines to be deleted and the text not disappearing.
Actual behavior:
The lines are undeleted (except the title for some reasons) and the text disappear for a moment
Link to an example:
Versions
Mark Text: 0.16rc2 and 0.15.1
Operating system: Ubuntu 18.04
The text was updated successfully, but these errors were encountered:
Based on v0.16.0-rc-2 (custom build), so rather rc-3.
Uncaught TypeError: Cannot read property 'nodeType' of null
at getNodeAndOffset (/src/muya/lib/selection/index.js:416)
at Object.setCursorRange (/src/muya/lib/selection/index.js:482)
at _r.setCursor (/src/muya/lib/contentState/index.js:194)
at _r.partialRender (/src/muya/lib/contentState/index.js:246)
at _r.inputHandler (/src/muya/lib/contentState/inputCtrl.js:324)
at HTMLDivElement.<anonymous> (/src/muya/lib/eventHandler/keyboard.js:203)
Uncaught TypeError: Cannot read property 'text' of null
at _r.checkNeedRender (/src/muya/lib/contentState/updateCtrl.js:42)
at HTMLDivElement.<anonymous> (/src/muya/lib/eventHandler/keyboard.js:269)
Description
When you select multiple lines and delete them, the moment you click on another line makes everything disappear. Then, entering ESC just shows the content of the file again, with the previously deleted lines undeleted.
Steps to reproduce
Expected behavior:
The lines to be deleted and the text not disappearing.
Actual behavior:
The lines are undeleted (except the title for some reasons) and the text disappear for a moment
Link to an example:
Versions
The text was updated successfully, but these errors were encountered: