primefaces / primereact

The Most Complete React UI Component Library
https://primereact.org
MIT License
6.98k stars 1.06k forks source link

OverlayPanel: cannot get access to current visible state #6451

Closed galimovkirill closed 7 months ago

galimovkirill commented 7 months ago

Describe the bug

I cannot find the way to get current visible state of OverlayPanel. It's needed to call function when overlay is toggled. I see that you already have a state object inside this component. Please, inject it into your external API

Reproducer

https://stackblitz.com/edit/vitejs-vite-drqy7m?file=src%2FApp.tsx

PrimeReact version

10.6.3

React version

18.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

melloware commented 7 months ago

PR submitted.