-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
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
feat(): active element blur #1164
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1164 +/- ##
==========================================
+ Coverage 84.03% 84.07% +0.03%
==========================================
Files 473 476 +3
Lines 13790 14175 +385
Branches 2026 2118 +92
==========================================
+ Hits 11589 11917 +328
- Misses 1787 1826 +39
- Partials 414 432 +18
|
🚀 Deployed on https://docs-preview-1164--next-bricks.netlify.app |
import { createProviderClass } from "@next-core/utils/general"; | ||
|
||
export function activeElementBlur() { | ||
(document.activeElement as HTMLInputElement).blur(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 放到 basic 里面吧
- 这里先判断下
document.activeElement instanceof HTMLElement
Property 'blur' does not exist on type 'Element' > document.activeElement microsoft/TypeScript#5901 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
依赖检查
组件之间的依赖声明,是微服务组件架构下的重要信息,请确保其正确性。
请勾选以下两组选项其中之一:
或者:
提交信息检查
Git 提交信息将决定包的版本发布及自动生成的 CHANGELOG,请检查工作内容与提交信息是否相符,并在以下每组选项中都依次确认。
破坏性变更:
feat
作为提交类型。BREAKING CHANGE: 你的变更说明
。新特性:
feat
作为提交类型。问题修复:
fix
作为提交类型。杂项工作:
即所有对下游使用者无任何影响、且没有必要显示在 CHANGELOG 中的改动,例如修改注释、测试用例、开发文档等:
chore
,docs
,test
等作为提交类型。