Skip to content

Commit

Permalink
Merge pull request #342 from MohamedRejeb/1.x
Browse files Browse the repository at this point in the history
Format BasicRichTextEditor
  • Loading branch information
MohamedRejeb authored Sep 21, 2024
2 parents b0c19d4 + 4ca1004 commit 0a21baf
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,15 @@ public fun BasicRichTextEditor(
startPadding = with(density) { contentPadding.calculateStartPadding(layoutDirection).toPx() },
)
.then(
if (!readOnly) Modifier
else Modifier.focusProperties { canFocus = false }
if (!readOnly)
Modifier
else
Modifier.focusProperties { canFocus = false }
)
.then(
if (singleParagraph) {
if (singleParagraph)
Modifier
} else {
else
Modifier
// Workaround for Desktop to fix a bug in BasicTextField where it doesn't select the correct text
// when the text contains multiple paragraphs.
Expand All @@ -263,7 +265,6 @@ public fun BasicRichTextEditor(
layoutDirection = layoutDirection,
scope = rememberCoroutineScope()
)
}
),
enabled = enabled,
readOnly = readOnly,
Expand Down

0 comments on commit 0a21baf

Please sign in to comment.