v1.1.4
This commit is contained in:
parent
e3763ee71a
commit
5f7d923b9c
2
dist/xm-select.js
vendored
2
dist/xm-select.js
vendored
File diff suppressed because one or more lines are too long
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user