Skip to content

fix #707 - #829

Merged
Jocs merged 11 commits into
masterfrom
fix-#707
Mar 29, 2019
Merged

Jocs merged 11 commits into
masterfrom
fix-#707

Conversation

@Jocs

@Jocs Jocs commented Mar 28, 2019

Copy link
Copy Markdown
Member

just for fix #707, to prevent the runtime error.

--

Please, don't submit /dist files with your PR!

@Jocs
Jocs requested a review from fxha March 28, 2019 14:47
Comment thread src/muya/lib/contentState/updateCtrl.js Outdated
const isLooseListItem = nextSibling.children.some(c => c.isLooseListItem)
nextSibling.children.forEach(c => c.isLooseListItem = isLooseListItem)
} else if (
// @fxha hi, I don't know how this if statement will be true? how can a parent to be a list?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fxha Hi, Do you know under what circumstances will this condition to be true?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought so too when fixing different bullet lists and this need some documentation too but I don't know. This should be only true when an empty list exists?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No comment, this must be written by me...but I forgot why I wrote this...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think only God know why I ad this...now.:smile:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, please remove the comment.

Comment thread src/muya/lib/contentState/updateCtrl.js Outdated
const isLooseListItem = nextSibling.children.some(c => c.isLooseListItem)
nextSibling.children.forEach(c => c.isLooseListItem = isLooseListItem)
} else if (
// @fxha hi, I don't know how this if statement will be true? how can a parent to be a list?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, please remove the comment.

@Jocs
Jocs merged commit 73a4abd into master Mar 29, 2019
@Jocs
Jocs deleted the fix-#707 branch March 29, 2019 05:07
thimbleberrysystems pushed a commit to thimbleberrysystems/WordBird that referenced this pull request Jun 21, 2026
* style opti

* fix marktext#707

* update changelog

* fix: marktext#831

* add checkSameMarkerOrDelimiter

* update selection color

* update some codes

* add a todo comment
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 this pull request may close these issues.

2 participants