TP-26814 Fix Leading Icon issue in OutlinedTextFieldRenderer (#42)
This commit is contained in:
committed by
GitHub Enterprise
parent
9251be36ca
commit
1df3cd9dcf
@@ -150,16 +150,20 @@ class OutlinedTextFieldRenderer(
|
||||
}
|
||||
}, isError = inputWrapper.hasError ?: false,
|
||||
visualTransformation = getVisualTransformation(visualTransformation = property.visualTransformation),
|
||||
leadingIcon = property.textFieldIconData?.leadingIcon?.let {
|
||||
leadingIcon = if (property.textFieldIconData?.leadingIcon?.property?.visible.orFalse()) {
|
||||
{
|
||||
uiTronRenderer.Render(composeViews = listOf(it))
|
||||
property.textFieldIconData?.leadingIcon?.let {
|
||||
uiTronRenderer.Render(composeViews = listOf(it))
|
||||
}
|
||||
}
|
||||
},
|
||||
trailingIcon = property.textFieldIconData?.trailingIcon?.let{
|
||||
} else null,
|
||||
trailingIcon = if (property.textFieldIconData?.trailingIcon?.property?.visible.orFalse()) {
|
||||
{
|
||||
uiTronRenderer.Render(composeViews = listOf(it))
|
||||
property.textFieldIconData?.leadingIcon?.let {
|
||||
uiTronRenderer.Render(composeViews = listOf(it))
|
||||
}
|
||||
}
|
||||
}
|
||||
} else null
|
||||
)
|
||||
if (inputWrapper.hasError == true && inputWrapper.errorMessage.isNullOrBlank()
|
||||
.not()
|
||||
@@ -195,4 +199,4 @@ class OutlinedTextFieldRenderer(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user