TP-24302 | fix not clickable spannable text (#74)
This commit is contained in:
committed by
GitHub Enterprise
parent
f2a424f2d7
commit
30110ef5c2
@@ -1,6 +1,7 @@
|
||||
package com.navi.uitron.render
|
||||
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.text.BasicText
|
||||
import androidx.compose.foundation.text.ClickableText
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.collectAsState
|
||||
@@ -73,7 +74,7 @@ class SpannableTextRenderer : Renderer<SpannableProperty> {
|
||||
}
|
||||
append(text.toString())
|
||||
}
|
||||
ClickableText(text = annotatedString,
|
||||
BasicText(text = annotatedString,
|
||||
modifier = Modifier
|
||||
.layoutId(property.layoutId.orEmpty())
|
||||
.setPadding(property.margin)
|
||||
@@ -83,9 +84,6 @@ class SpannableTextRenderer : Renderer<SpannableProperty> {
|
||||
property.backGroundBrushData
|
||||
)
|
||||
.setPadding(property.padding)
|
||||
.alpha(property.alpha ?: 1.0f),
|
||||
onClick = {
|
||||
|
||||
})
|
||||
.alpha(property.alpha ?: 1.0f))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user