mirror of https://github.com/vuejs/core.git
chore: fix width/height check condition
This commit is contained in:
parent
7cbcee3d83
commit
6fcec3b2c7
|
|
@ -113,8 +113,11 @@ function shouldSetAsProp(
|
|||
// #8780 the width or heigth of embedded tags must be set as attribute
|
||||
if (key === 'width' || key === 'height') {
|
||||
const tag = el.tagName
|
||||
return (
|
||||
tag === 'IMG' || tag === 'VIDEO' || tag === 'CANVAS' || tag === 'SOURCE'
|
||||
return !(
|
||||
tag === 'IMG' ||
|
||||
tag === 'VIDEO' ||
|
||||
tag === 'CANVAS' ||
|
||||
tag === 'SOURCE'
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue