Browse Source

fix(attrs): do not consider translate attribute as boolean (#11392)

when present, translate attribute had translate as it's value, which is not valid, the value should
remain as specified by the user, that's why we removed it form isBooleanAttr map

fix #11391
dev
Nowres Rafid 4 years ago
committed by GitHub
parent
commit
cd57393fd3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/platforms/web/util/attrs.js

2
src/platforms/web/util/attrs.js

@ -35,7 +35,7 @@ export const isBooleanAttr = makeMap(
'default,defaultchecked,defaultmuted,defaultselected,defer,disabled,' +
'enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,' +
'muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,' +
'required,reversed,scoped,seamless,selected,sortable,translate,' +
'required,reversed,scoped,seamless,selected,sortable,' +
'truespeed,typemustmatch,visible'
)

Loading…
Cancel
Save