material-tailwind icon indicating copy to clipboard operation
material-tailwind copied to clipboard

onAnimationEnd handler for Dialog component?

Open siamahnaf opened this issue 2 years ago • 0 comments

Hello, I need to add css into my custom header for removing flickering issue (When it is fixed element), like something body element you add padding right style when dialog is opened, as the I need to give this type of style into my custom header.

But I didn't find any handler for manage it like `onAnimationEnd"

<Dialog
    open={open}
    handler={onClose}
    animate={{
        mount: { y: 0 },
        unmount: { y: -15 },
    }}
    size="md"
    className="p-5"
    dismiss={{
        ancestorScroll: false,
        enabled: true,
        referencePress: false
    }}
>

</Dialog>

Actually I want to add some css when animationEnd, more clearly when you removed padding right and overflow hidden from body element? How can I do that?

siamahnaf avatar Oct 09 '23 06:10 siamahnaf