Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
4b02ed7c
Commit
4b02ed7c
authored
Jan 23, 2019
by
王小白
Committed by
hetech
Jan 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
popper: destroy popper instance(#13988)
parent
c154292d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
packages/loading/src/directive.js
packages/loading/src/directive.js
+1
-0
packages/tooltip/src/main.js
packages/tooltip/src/main.js
+4
-0
No files found.
packages/loading/src/directive.js
View file @
4b02ed7c
...
@@ -121,6 +121,7 @@ loadingDirective.install = Vue => {
...
@@ -121,6 +121,7 @@ loadingDirective.install = Vue => {
el
.
mask
.
parentNode
.
removeChild
(
el
.
mask
);
el
.
mask
.
parentNode
.
removeChild
(
el
.
mask
);
toggleLoading
(
el
,
{
value
:
false
,
modifiers
:
binding
.
modifiers
});
toggleLoading
(
el
,
{
value
:
false
,
modifiers
:
binding
.
modifiers
});
}
}
el
.
instance
&&
el
.
instance
.
$destroy
();
}
}
});
});
};
};
...
...
packages/tooltip/src/main.js
View file @
4b02ed7c
...
@@ -205,6 +205,10 @@ export default {
...
@@ -205,6 +205,10 @@ export default {
}
}
},
},
beforeDestroy
()
{
this
.
popperVM
&&
this
.
popperVM
.
$destroy
();
},
destroyed
()
{
destroyed
()
{
const
reference
=
this
.
referenceElm
;
const
reference
=
this
.
referenceElm
;
off
(
reference
,
'
mouseenter
'
,
this
.
show
);
off
(
reference
,
'
mouseenter
'
,
this
.
show
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment