fix(Drawer): Close drawer on item click

Clicking on an item when the popup drawer is displayed would keep it open.
Now clicking on any item should automatically close the drawer.

Popup was also refactored and no longer uses refs.
This commit is contained in:
Vlad Piersec
2021-11-01 11:39:19 +02:00
committed by vp8x8
parent cd6a814978
commit 8983ea41fd
13 changed files with 248 additions and 182 deletions

View File

@@ -61,8 +61,7 @@ export default class VideoMenuButton extends Component<Props> {
/**
* KeyPress handler for accessibility.
*
* @param {Object} e - The key event to handle.
*
* @param {Object} e - The synthetic event.
* @returns {void}
*/
_onKeyPress(e) {