Upgrade ts to the latest version and fix type errors

This commit is contained in:
SleepWalker
2020-05-20 19:59:06 +03:00
parent 2d903f96fc
commit 29326519b8
16 changed files with 37 additions and 37 deletions

View File

@@ -64,7 +64,7 @@ export class PopupStack extends React.Component<Props> {
}
onOverlayClick(popup: PopupConfig) {
return (event: React.MouseEvent) => {
return (event: React.MouseEvent<HTMLDivElement>) => {
if (event.target !== event.currentTarget || popup.disableOverlayClose) {
return;
}