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

feature: Ability to manually control NotificationDropdown open/closed state #364

Open
duckwaffle opened this issue Aug 22, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@duckwaffle
Copy link

Problem / Motivation

There doesn't seem to be any mechanism to open/close the NotificationDropdown control without simulating a click event on the parent element in the dom. It would be incredible if it were possible to programmatically open/close the NotificationDropdown control.

Proposed solution

Expose a boolean? property named isOpen or something along those lines, which is monitored by NotificationDropdown to call setOpen at

const [open, setOpen] = useState(false);

@duckwaffle duckwaffle added the enhancement New feature or request label Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant