mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
fix: strict check input
This commit is contained in:
parent
777c56a515
commit
6f040b6c40
@ -11,8 +11,8 @@ describe('Form', () => {
|
||||
|
||||
// Use origin logic
|
||||
if (id) {
|
||||
const input = this.getElementsByTagName('input')[0];
|
||||
if (input.id === id) {
|
||||
const [input] = this.getElementsByTagName('input');
|
||||
if (input && input.id === id) {
|
||||
return input;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user