CAPI设置光标color后,设置stytle不能影响光标color

Signed-off-by: mengbin <mengbin11@huawei.com>
This commit is contained in:
mengbin 2024-08-23 17:36:19 +08:00
parent ba3b1dfd38
commit 6be7f9eaa4

View File

@ -4021,8 +4021,8 @@ int32_t SetCaretStyle(ArkUI_NodeHandle node, const ArkUI_AttributeItem* item)
// already check in entry point.
auto* fullImpl = GetFullImpl();
int32_t unit = GetDefaultUnit(node, UNIT_VP);
fullImpl->getNodeModifiers()->getTextInputModifier()->setTextInputCaretStyle(
node->uiNodeHandle, item->value[NUM_0].f32, unit, item->value[NUM_0].u32);
fullImpl->getNodeModifiers()->getTextInputModifier()->setTextInputCaret(
node->uiNodeHandle, item->value[NUM_0].f32, unit);
return ERROR_CODE_NO_ERROR;
}