@applica-software-guru/react-admin 1.4.205 → 1.4.206
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ra-buttons/CreateInDialogButton.d.ts +1 -1
- package/dist/components/ra-buttons/CreateInDialogButton.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +1 -2
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +1 -1
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-buttons/CreateInDialogButton.tsx +3 -4
package/package.json
CHANGED
|
@@ -209,7 +209,7 @@ export function CreateInDialogButton({
|
|
|
209
209
|
onSubmit,
|
|
210
210
|
onSuccess,
|
|
211
211
|
onError,
|
|
212
|
-
...
|
|
212
|
+
...controllerProps
|
|
213
213
|
}: CreateInDialogButtonProps): JSX.Element {
|
|
214
214
|
const [open, setOpen] = useState(false);
|
|
215
215
|
const translate = useTranslate();
|
|
@@ -224,7 +224,6 @@ export function CreateInDialogButton({
|
|
|
224
224
|
<>
|
|
225
225
|
{isSmall ? (
|
|
226
226
|
<StyledFab
|
|
227
|
-
{...props}
|
|
228
227
|
// @ts-ignore
|
|
229
228
|
state={scrollStates[String(scrollToTop)]}
|
|
230
229
|
color="primary"
|
|
@@ -235,7 +234,7 @@ export function CreateInDialogButton({
|
|
|
235
234
|
<ContentAdd />
|
|
236
235
|
</StyledFab>
|
|
237
236
|
) : (
|
|
238
|
-
<Button
|
|
237
|
+
<Button sx={sx} label={label} onClick={handleOpen} style={style}>
|
|
239
238
|
<ContentAdd />
|
|
240
239
|
</Button>
|
|
241
240
|
)}
|
|
@@ -254,7 +253,7 @@ export function CreateInDialogButton({
|
|
|
254
253
|
maxWidth={maxWidth}
|
|
255
254
|
>
|
|
256
255
|
<CreateInDialogContent
|
|
257
|
-
{...
|
|
256
|
+
{...controllerProps}
|
|
258
257
|
redirect={redirect}
|
|
259
258
|
record={record}
|
|
260
259
|
onClose={handleClose}
|