Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a060bb7

Browse filesBrowse files
authored
Update CModal.tsx
1 parent 83452f3 commit a060bb7
Copy full SHA for a060bb7

File tree

1 file changed

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

1 file changed

+4
-3
lines changed

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

Copy file name to clipboardExpand all lines: packages/coreui-react/src/components/modal/CModal.tsx
+4-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.