feat(vom): function refactor

This commit is contained in:
Ljy-0827
2026-08-24 11:01:07 +08:00
parent 4aade4b94f
commit c15d3640cb
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 {