Browse Source

fix: strict check input

pull/14725/head
ycjcl868 6 years ago
parent
commit
6f040b6c40
  1. 4
      components/form/__tests__/label.test.js

4
components/form/__tests__/label.test.js

@ -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…
Cancel
Save