File tree Expand file tree Collapse file tree
richtext-ui/src/commonMain/kotlin/com/halilibo/richtext/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -204,6 +204,7 @@ private val LocalListLevel = compositionLocalOf { 0 }
204204 val contentsIndent = with (density) { listStyle.contentsIndent!! .toDp() }
205205 val itemSpacing = with (density) { listStyle.itemSpacing!! .toDp() }
206206 val currentLevel = LocalListLevel .current
207+ val currentLinkClickHandler = LocalLinkClickHandler .current
207208
208209 PrefixListLayout (
209210 count = items.size,
@@ -216,7 +217,10 @@ private val LocalListLevel = compositionLocalOf { 0 }
216217 }
217218 },
218219 itemForIndex = { index ->
219- BasicRichText (style = currentRichTextStyle.copy(paragraphSpacing = listStyle.itemSpacing)) {
220+ BasicRichText (
221+ style = currentRichTextStyle.copy(paragraphSpacing = listStyle.itemSpacing),
222+ linkClickHandler = currentLinkClickHandler
223+ ) {
220224 CompositionLocalProvider (LocalListLevel provides currentLevel + 1 ) {
221225 drawItem(items[index])
222226 }
You can’t perform that action at this time.
0 commit comments