feat(Search): improve accessibility (#4522)

This commit is contained in:
neverland
2019-09-21 07:34:46 +08:00
committed by GitHub
parent a1ac34bead
commit 890936f61d
4 changed files with 10 additions and 14 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ test('cancel event', () => {
}
});
const cancel = wrapper.find('.van-search__action div');
const cancel = wrapper.find('.van-search__action');
cancel.trigger('click');
expect(onInput).toHaveBeenCalledWith('');