Skip to content

Commit 6bf63b7

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ void HRViewManager::UpdateCustomTsProps(std::shared_ptr<BaseView> &view, const H
704704
for (auto prop_it = props.begin(); prop_it != props.end(); prop_it++) {
705705
auto &key = prop_it->first;
706706
if (key == HRNodeProps::VISIBILITY || key == HRNodeProps::TRANSFORM || key == HRNodeProps::OVERFLOW ||
707-
key == "native-scroll-ohos") {
707+
key == "native-scroll-ohos" || key == "attachedtowindow" || key == "detachedfromwindow") {
708708
customTsView->SetProp(key, prop_it->second);
709709
}
710710
}

0 commit comments

Comments
 (0)