feat(vom): function refactor

This commit is contained in:
Ljy-0827
2026-08-26 15:28:27 +08:00
committed by GitHub
parent f060a7c074
commit 41cb576256
13 changed files with 1529 additions and 801 deletions
+4 -1
View File
@@ -199,7 +199,10 @@ function shouldRender(node: VomNode): boolean {
}
export function isVomReferenceNode(node: VomNode): boolean {
return INTERACTIVE_ROLES.has(normalizedRole(node)) || isUrlBearingStructuralAction(node);
return (
node.referenceable !== false &&
(INTERACTIVE_ROLES.has(normalizedRole(node)) || isUrlBearingStructuralAction(node))
);
}
function hasRecoveryHandler(node: VomNode): boolean {