From dd7ac657863711c5a96b2f0101d26652bcdcfb04 Mon Sep 17 00:00:00 2001 From: Harry Chen Date: Wed, 19 Feb 2020 23:22:44 +0800 Subject: [PATCH] Add keepMounted attribute to dialog to fix preact compatibility problem Signed-off-by: Harry Chen --- src/components/dialogs/CommonDialog.tsx | 2 +- src/components/dialogs/LoginDialog.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/dialogs/CommonDialog.tsx b/src/components/dialogs/CommonDialog.tsx index 13e42cf..fdf653a 100644 --- a/src/components/dialogs/CommonDialog.tsx +++ b/src/components/dialogs/CommonDialog.tsx @@ -12,7 +12,7 @@ import { ICommonDialogProps } from '../../types/dialogs'; class CommonDialog extends React.PureComponent { public render(): React.ReactNode { return ( - + {this.props.title} {this.props.content} diff --git a/src/components/dialogs/LoginDialog.tsx b/src/components/dialogs/LoginDialog.tsx index 68d134e..7e6f49e 100644 --- a/src/components/dialogs/LoginDialog.tsx +++ b/src/components/dialogs/LoginDialog.tsx @@ -29,7 +29,7 @@ class LoginDialog extends React.PureComponent { public render(): React.ReactNode { return ( - + 登录网络学堂