Skip to content

Commit 83452f3

Browse files
committed
fix: brought back custom modal attributes from v3
1 parent a3ecb2e commit 83452f3

File tree

1 file changed

+2
-0
lines changed
  • packages/coreui-react/src/components/modal

1 file changed

+2
-0
lines changed

packages/coreui-react/src/components/modal/CModal.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export const CModal = forwardRef<HTMLDivElement, CModalProps>(
108108
transition = true,
109109
unmountOnClose = true,
110110
visible,
111+
...attributes
111112
},
112113
ref,
113114
) => {
@@ -232,6 +233,7 @@ export const CModal = forwardRef<HTMLDivElement, CModalProps>(
232233
fullscreen={fullscreen}
233234
scrollable={scrollable}
234235
size={size}
236+
{...attributes}
235237
>
236238
<CModalContent ref={modalContentRef}>{children}</CModalContent>
237239
</CModalDialog>

0 commit comments

Comments
 (0)