This commit is contained in:
maplemei 2019-12-09 20:21:07 +08:00
parent e3763ee71a
commit 5f7d923b9c
2 changed files with 2 additions and 2 deletions

2
dist/xm-select.js vendored

File diff suppressed because one or more lines are too long

View File

@ -426,7 +426,6 @@ class Framework extends Component{
//监听form的重置按钮 //监听form的重置按钮
let dom = this.base; let dom = this.base;
while(dom){ while(dom){
dom = dom.parentElement;
if(dom.tagName === 'FORM'){ if(dom.tagName === 'FORM'){
let resetBtn = dom.querySelector('button[type="reset"]') let resetBtn = dom.querySelector('button[type="reset"]')
resetBtn && resetBtn.addEventListener('click', e => { resetBtn && resetBtn.addEventListener('click', e => {
@ -434,6 +433,7 @@ class Framework extends Component{
}); });
break; break;
} }
dom = dom.parentElement;
} }
} }