Skip to content

Commit 050abf2

Browse files
blake-newmanyyx990803
authored andcommitted
Fix modifiers being incorrectly passed to terminal directives (fix #2707)
- Fixes #2707 - Terminal directives where incorrectly revieving modifiers from other inline directives
1 parent c07b220 commit 050abf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,14 +588,14 @@ function checkTerminalDirectives (el, attrs, options) {
588588
var attr, name, value, modifiers, matched, dirName, rawName, arg, def, termDef
589589
for (var i = 0, j = attrs.length; i < j; i++) {
590590
attr = attrs[i]
591-
modifiers = parseModifiers(attr.name)
592591
name = attr.name.replace(modifierRE, '')
593592
if ((matched = name.match(dirAttrRE))) {
594593
def = resolveAsset(options, 'directives', matched[1])
595594
if (def && def.terminal) {
596595
if (!termDef || ((def.priority || DEFAULT_TERMINAL_PRIORITY) > termDef.priority)) {
597596
termDef = def
598597
rawName = attr.name
598+
modifiers = parseModifiers(attr.name)
599599
value = attr.value
600600
dirName = matched[1]
601601
arg = matched[2]

0 commit comments

Comments
 (0)