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); |