diff --git a/blink/renderer/core/editing/selection_controller.cc b/blink/renderer/core/editing/selection_controller.cc index a7803961ad00c3998c15570780dd7ca9a56b485b..8db48408c5881b66ce22f12a9dac1b10192707f7 100644 --- a/blink/renderer/core/editing/selection_controller.cc +++ b/blink/renderer/core/editing/selection_controller.cc @@ -1269,7 +1269,11 @@ bool SelectionController::HandleMouseReleaseEvent( SelectionInFlatTree::Builder builder; Node* node = event.InnerNode(); +#if defined(OHOS_INPUT_EVENTS) + if (node && node->GetLayoutObject()) { +#else if (node && node->GetLayoutObject() && IsEditable(*node)) { +#endif const PositionInFlatTreeWithAffinity pos = CreateVisiblePosition( PositionWithAffinityOfHitTestResult(event.GetHitTestResult()))