mirror of https://github.com/ElemeFE/element
Merge pull request #724 from QingWei-Li/fix/clickoutside-bug
Clickoutside: fix id of undefined, fixed #720pull/730/head
commit
7dc4648180
|
@ -22,8 +22,8 @@ const Files = [
|
|||
filename: 'index.js',
|
||||
content: `const ${ComponentName} = require('./src/main');
|
||||
|
||||
/* istanbul ignore next */
|
||||
${ComponentName}.install = function(Vue) {
|
||||
/* istanbul ignore next */
|
||||
Vue.component(${ComponentName}.name, ${ComponentName});
|
||||
};
|
||||
|
||||
|
|
|
@ -50,7 +50,6 @@ export default {
|
|||
for (let i = 0; i < len; i++) {
|
||||
if (nodeList[i][ctx].id === el[ctx].id) {
|
||||
nodeList.splice(i, 1);
|
||||
delete el[ctx];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,6 +143,5 @@ describe('Utils:Clickoutside', () => {
|
|||
Clickoutside.unbind(el);
|
||||
document.body.click();
|
||||
expect(count).to.equal(1);
|
||||
expect(el[ctx]).to.not.exist;
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue