mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-18 04:42:01 +00:00
Popup stops propagation of specific events
This commit is contained in:
parent
6f976c0641
commit
aa5a16ad04
1 changed files with 8 additions and 2 deletions
|
|
@ -45,12 +45,18 @@ class Popup extends PureComponent {
|
|||
}
|
||||
|
||||
open = (event) => {
|
||||
event.stopPropagation();
|
||||
if (event) {
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
||||
this.setState({ isOpen: true });
|
||||
}
|
||||
|
||||
close = (event) => {
|
||||
event.stopPropagation();
|
||||
if (event && event.type === 'keyup') {
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
||||
this.setState({ isOpen: false });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue