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