fix(react): also respect custom default edge type in fallback logic

This commit is contained in:
Ze-Zheng Wu
2025-07-05 19:31:55 +08:00
parent 680f6e8b2d
commit ab05d008d9
4 changed files with 81 additions and 1 deletions
@@ -46,7 +46,7 @@ export function EdgeWrapper<EdgeType extends Edge = Edge>({
if (EdgeComponent === undefined) {
onError?.('011', errorMessages['error011'](edgeType));
edgeType = 'default';
EdgeComponent = builtinEdgeTypes.default;
EdgeComponent = edgeTypes?.['default'] || builtinEdgeTypes.default;
}
const isFocusable = !!(edge.focusable || (edgesFocusable && typeof edge.focusable === 'undefined'));