Skip to content

Commit 7ab67a8

Browse files
committed
fix(ohos): fix custom ts view attach event
1 parent 6bf63b7 commit 7ab67a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

framework/ohos/src/main/cpp/impl/renderer/native/src/uimanager/hr_view_manager.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ void HRViewManager::UpdateEventListener(uint32_t tag, HippyValueObjectType &prop
422422
// custom ts view
423423
if (IsCustomTsRenderView(renderView->GetViewType())) {
424424
UpdateCustomTsEventListener(tag, props);
425+
renderView->UpdateEventListener(props); // c层也要记录事件,否则attach等c层事件发不到前端
425426
return;
426427
}
427428

0 commit comments

Comments
 (0)