Skip to content

Commit e80104e

Browse files
dsonetyyx990803
authored andcommitted
refactor: minor tweak on conditions order (#6992)
1 parent 79c0d7b commit e80104e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/parser/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,8 @@ function processAttrs (el) {
559559
// #6887 firefox doesn't update muted state if set via attribute
560560
// even immediately after element creation
561561
if (!el.component &&
562-
platformMustUseProp(el.tag, el.attrsMap.type, name) &&
563-
name === 'muted') {
562+
name === 'muted' &&
563+
platformMustUseProp(el.tag, el.attrsMap.type, name)) {
564564
addProp(el, name, 'true')
565565
}
566566
}

0 commit comments

Comments
 (0)