Missed events for panel open/panel closed

UI Components for React
Post Reply
Slippa
Posts: 2
Joined: 16 Mar 2021, 16:48

16 Mar 2021, 16:57

Hey, it would be really useful to add events for multiselect/dropdown components when its panels are opened or closed, like in primeNg. (onPanelHide/onPanelShow)

I did not find any handy solution for this and I need to use MutationObserver to catch these things.

Thanks,
Stas.

Slippa
Posts: 2
Joined: 16 Mar 2021, 16:48

17 Mar 2021, 08:22

Actually, found another way to handle this, but still, not the perfect way if someone needs it. Use useRef on multiselect and there are onOverlayExited/onOverlayEntered functions that are not shared to use, but I could make an override and save old functionality

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

06 May 2021, 22:39

Hi,

Sorry for the delayed response. Added onShow and onHide callbacks to Overlay and Modal components. Or you can use transitionOptions property to track animation phases. Details; https://github.com/primefaces/primereac ... -817597992

Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests