diff --git a/richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/ui/BasicRichText.kt b/richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/ui/BasicRichText.kt index 068e0749..8e5e9c9b 100644 --- a/richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/ui/BasicRichText.kt +++ b/richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/ui/BasicRichText.kt @@ -65,8 +65,11 @@ public fun BasicRichText( val position = event.changes.first().position val isLink = state.isLink(position) - if (isLink) pointerIcon.value = PointerIcon.Hand - else pointerIcon.value = PointerIcon.Default + pointerIcon.value = + if (isLink) + PointerIcon.Hand + else + PointerIcon.Default } } }