Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OverlayPanel: cannot get access to current visible state #6451

Closed
galimovkirill opened this issue Apr 23, 2024 · 1 comment · Fixed by #6453
Closed

OverlayPanel: cannot get access to current visible state #6451

galimovkirill opened this issue Apr 23, 2024 · 1 comment · Fixed by #6453
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@galimovkirill
Copy link

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

@galimovkirill galimovkirill added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 23, 2024
melloware added a commit to melloware/primereact that referenced this issue Apr 23, 2024
@melloware melloware added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Apr 23, 2024
@melloware melloware self-assigned this Apr 23, 2024
@melloware melloware added this to the 10.6.4 milestone Apr 23, 2024
@melloware
Copy link
Member

PR submitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants