Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

content is not removable if the last block is code-block #80

Open
andrewfan opened this issue May 21, 2018 · 3 comments
Open

content is not removable if the last block is code-block #80

andrewfan opened this issue May 21, 2018 · 3 comments
Labels

Comments

@andrewfan
Copy link

Can not remove content after selecting everything (cmd +a) when the last block is code-block

https://www.dropbox.com/s/mdvn2pqa52yqufl/Screenshot%202018-05-21%2015.35.40.png?dl=0

@mxstbr
Copy link

mxstbr commented May 21, 2018

This is a duplicate of #66 I think

@mxstbr mxstbr closed this as completed May 21, 2018
@andrewfan
Copy link
Author

@mxstbr I don't think that it is the duplicate of #66. (I left comment there and I think that it should not be an issue any more)

Hiting backspace does not trigger click event, so onClickOutside https://github.com/withspectrum/draft-js-markdown-plugin/blob/master/src/components/Code/index.js#L78 is not even called

@mxstbr
Copy link

mxstbr commented May 22, 2018

Oh sorry, that's true, good point. Reopening!

@mxstbr mxstbr reopened this May 22, 2018
@mxstbr mxstbr added the bug label May 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants