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

Set isSelected to false for formatHolder of list item #2540

Merged
merged 7 commits into from
Mar 28, 2024

Conversation

JiuqingSong
Copy link
Collaborator

@JiuqingSong JiuqingSong commented Mar 28, 2024

Now that we allow SelectionMarker to have isSelected: false, we can set this false value to formatHolder under list item to better match its meaning.

@JiuqingSong JiuqingSong changed the title U/jisong/format holder Set isSelected to false for formatHolder of list item Mar 28, 2024
@JiuqingSong JiuqingSong marked this pull request as ready for review March 28, 2024 22:03
@@ -15,14 +15,18 @@ export function createListItem(
levels: ContentModelListLevel[],
format?: ContentModelSegmentFormat
): ContentModelListItem {
const formatHolder = createSelectionMarker(format);

formatHolder.isSelected = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

if the marker is in the list item, should it be true?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually we never read that value, so it can be false.

@JiuqingSong JiuqingSong merged commit b806329 into master Mar 28, 2024
7 checks passed
@JiuqingSong JiuqingSong deleted the u/jisong/formatHolder branch March 28, 2024 22:30
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