Skip to content

Commit a060bb7

Browse files
authored
Update CModal.tsx
1 parent 83452f3 commit a060bb7

File tree

1 file changed

+4
-3
lines changed
  • packages/coreui-react/src/components/modal

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const CModal = forwardRef<HTMLDivElement, CModalProps>(
108108
transition = true,
109109
unmountOnClose = true,
110110
visible,
111-
...attributes
111+
...rest
112112
},
113113
ref,
114114
) => {
@@ -233,9 +233,10 @@ export const CModal = forwardRef<HTMLDivElement, CModalProps>(
233233
fullscreen={fullscreen}
234234
scrollable={scrollable}
235235
size={size}
236-
{...attributes}
237236
>
238-
<CModalContent ref={modalContentRef}>{children}</CModalContent>
237+
<CModalContent {...rest} ref={modalContentRef}>
238+
{children}
239+
</CModalContent>
239240
</CModalDialog>
240241
</div>
241242
</CModalContext.Provider>

0 commit comments

Comments
 (0)