We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用react-router v4构建的单页面网页,如果在输入框聚焦状态下点击跳转,会因为失焦执行FormItem的validationData方法,但因为是延迟100ms才执行,此时组件已经销毁,导致报错。
react-router
FormItem
validationData
validationData(id: string) { if (this.validationTime) { clearTimeout(this.validationTime); this.validationTime = null; } this.validationTime = setTimeout(() => { const { formContext } = this.props; formContext.validation(id, null); }, 100); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
用
react-router
v4构建的单页面网页,如果在输入框聚焦状态下点击跳转,会因为失焦执行FormItem
的validationData
方法,但因为是延迟100ms才执行,此时组件已经销毁,导致报错。The text was updated successfully, but these errors were encountered: