Skip to content

Commit ef923be

Browse files
committed
only check keep-alive on dynamic components
1 parent 03621ee commit ef923be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/parser/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,9 @@ function processComponent (el) {
326326
let binding
327327
if ((binding = getBindingAttr(el, 'is'))) {
328328
el.component = binding
329-
}
330-
if (getAndRemoveAttr(el, 'keep-alive') != null) {
331-
el.keepAlive = true
329+
if (getAndRemoveAttr(el, 'keep-alive') != null) {
330+
el.keepAlive = true
331+
}
332332
}
333333
if (getAndRemoveAttr(el, 'inline-template') != null) {
334334
el.inlineTemplate = true

0 commit comments

Comments
 (0)