diff --git a/frameworks/core/components_ng/pattern/text_field/text_field_pattern.cpp b/frameworks/core/components_ng/pattern/text_field/text_field_pattern.cpp index 8f7662132edd60b55992cf13e0d97de2ebbe21ad..d0e5bec411c8dcc0e8aa6ec5a4269aff86829990 100644 --- a/frameworks/core/components_ng/pattern/text_field/text_field_pattern.cpp +++ b/frameworks/core/components_ng/pattern/text_field/text_field_pattern.cpp @@ -2255,6 +2255,10 @@ void TextFieldPattern::HandleMouseEvent(MouseInfo& info) if (info.GetLocalLocation().GetX() > (frameRect_.Width() - responseAreaWidth)) { pipeline->ChangeMouseStyle(frameId, MouseFormat::DEFAULT); return; + } else { + if (frameRect_.IsInRegion(PointF(info.GetLocalLocation().GetX(), info.GetLocalLocation().GetY()))) { + pipeline->ChangeMouseStyle(frameId, MouseFormat::TEXT_CURSOR); + } } isUsingMouse_ = true; if (info.GetButton() == MouseButton::RIGHT_BUTTON) {