Properly handle closing click events in modals

This commit is contained in:
Fedor Indutny 2022-09-14 18:58:35 -07:00 committed by GitHub
parent b348bf9b70
commit 635840cd99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 257 additions and 178 deletions

View file

@ -9181,6 +9181,14 @@
"reasonCategory": "usageTrusted",
"updated": "2021-09-21T01:40:08.534Z"
},
{
"rule": "React-useRef",
"path": "ts/components/ModalHost.tsx",
"line": " const containerRef = React.useRef<HTMLDivElement | null>(null);",
"reasonCategory": "usageTrusted",
"updated": "2022-09-14T16:20:15.384Z",
"reasonDetail": "Holds a reference to a container element to prevent outside clicks"
},
{
"rule": "React-useRef",
"path": "ts/components/ProfileEditor.tsx",