Skip to content

Commit 4821e18

Browse files
committed
fix: fix codeProps.className props issue.
1 parent b10aa9d commit 4821e18

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/src/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ const CodeLayout = forwardRef<HTMLDivElement, CodeLayoutProps>((props, ref) => {
8888
</div>
8989
)}
9090
{!disableCode && !disableToolbar && (
91-
<div className={`${prefixCls}-code ${showCode ? 'w-display' : 'w-hidden'}`} {...codeProps}>
91+
<div
92+
{...codeProps}
93+
className={`${prefixCls}-code ${codeProps?.className || ''} ${showCode ? 'w-display' : 'w-hidden'}`}
94+
>
9295
{code}
9396
</div>
9497
)}

0 commit comments

Comments
 (0)