Fixed Tooltip TypeError when quickly hovering between multiple tooltips
parent
c7ef9ea772
commit
ca1de73201
|
@ -63,7 +63,7 @@ const TRANSITIONS = {
|
|||
|
||||
function transitionEventNamesFor (element) {
|
||||
for (const transition in TRANSITIONS) {
|
||||
if (element.style[transition] !== undefined) {
|
||||
if (element && element.style[transition] !== undefined) {
|
||||
return TRANSITIONS[transition];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue