fix enbaleArrow always true

Signed-off-by: 18168667290 <huangpeng107@huawei.com>
This commit is contained in:
18168667290 2024-11-14 16:45:27 +08:00
parent e41825fe34
commit 76237230c8

View File

@ -1084,7 +1084,7 @@ RefPtr<FrameNode> MenuView::Create(const RefPtr<UINode>& customNode, int32_t tar
CHECK_NULL_RETURN(scroll, nullptr);
MountScrollToMenu(customNode, scroll, type, menuNode);
if (Container::GreatOrEqualAPIVersion(PlatformVersion::VERSION_ELEVEN) && !menuParam.enableArrow) {
if (Container::GreatOrEqualAPIVersion(PlatformVersion::VERSION_ELEVEN) && !menuParam.enableArrow.value_or(false)) {
UpdateMenuBorderEffect(menuNode);
}
menuNode->MarkModifyDone();