Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/utils/mergeProps/mergeProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ function pushProp(prev: BaseProps, curr: BaseProps): BaseProps {

if (mergedFunction) {
prev[key] = mergedFunction;
} else if (curr[key] !== undefined) {
prev[key] = curr[key];
break;
}

prev[key] = curr[key];
}
}
}
return prev;
}

function mergeStyle(a?: CSSProperties, b?: CSSProperties): CSSProperties | undefined {
if (a == null) return b;
return { ...a, ...b };
}

Expand Down
Loading