Skip to content

Commit 8fccd82

Browse files
sinshutuyyx990803
authored andcommitted
chore: fix tag name in compiler/parser/index.js (#9165)
1 parent 3d44937 commit 8fccd82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/parser/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ function processKey (el) {
340340
const parent = el.parent
341341
if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
342342
warn(
343-
`Do not use v-for index as key on <transtion-group> children, ` +
343+
`Do not use v-for index as key on <transition-group> children, ` +
344344
`this is the same as not using keys.`
345345
)
346346
}

test/unit/modules/compiler/parser.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ describe('parser', () => {
250250
</transition-group>
251251
</div>
252252
`, baseOptions)
253-
expect('Do not use v-for index as key on <transtion-group> children').toHaveBeenWarned()
253+
expect('Do not use v-for index as key on <transition-group> children').toHaveBeenWarned()
254254
})
255255

256256
it('v-pre directive', () => {

0 commit comments

Comments
 (0)