Skip to content

Commit b9a7275

Browse files
committed
fix(dom): Disable the dom cache when vue is present, fixed #119
1 parent 0fddd1c commit b9a7275

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/util/dom.js

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ const cacheNode = {}
1010
*/
1111
export function getNode (el, noCache = false) {
1212
if (typeof el === 'string') {
13+
if (typeof window.Vue !== 'undefined') {
14+
return find(el)
15+
}
1316
el = noCache ? find(el) : (cacheNode[el] || (cacheNode[el] = find(el)))
1417
}
1518

0 commit comments

Comments
 (0)