mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-12 17:23:11 +00:00
parent
a8071a2415
commit
ca6c701318
1 changed files with 4 additions and 4 deletions
|
|
@ -3,14 +3,14 @@ let getClosestVueParent = ($parent, cssClass) => {
|
|||
return false;
|
||||
}
|
||||
|
||||
if ($parent._uid === 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($parent.$el.classList.contains(cssClass)) {
|
||||
return $parent;
|
||||
}
|
||||
|
||||
if ($parent._uid === 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return getClosestVueParent($parent.$parent, cssClass);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue