You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the className prop is not passed and the responsive prop is false (default), the @plone/volto/components/theme/Image/Image/Image component renders an img tag with an empty class attribute. That is:
<imgsrc="src" class/>
To Reproduce
Steps to reproduce the behavior:
Edit the View component in volto/packages/volto/src/components/manage/Blocks/Image/View.jsx, removing the className and responsive props passed to the Image component. Here:
Describe the bug
If the
className
prop is not passed and theresponsive
prop is false (default), the@plone/volto/components/theme/Image/Image/Image
component renders animg
tag with an emptyclass
attribute. That is:To Reproduce
Steps to reproduce the behavior:
View
component involto/packages/volto/src/components/manage/Blocks/Image/View.jsx
, removing theclassName
andresponsive
props passed to theImage
component. Here:volto/packages/volto/src/components/manage/Blocks/Image/View.jsx
Lines 31 to 71 in dd35efb
img
tag code.Expected behavior
The
img
tag must not have a class attribute.Software (please complete the following information):
The text was updated successfully, but these errors were encountered: