Skip to content

Commit

Permalink
src is required
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Mar 25, 2020
1 parent 97b8e13 commit 59f38a8
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/Image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,13 @@ export const Image = {
/>
)}
{data.srcSet && <source srcset={data.srcSet} sizes={data.sizes} />}
{data.src && (
<img
src={data.src}
alt={data.alt}
title={data.title}
v-on:load={this.load}
style={{ width: "100%" }}
/>
)}
<img
src={data.src}
alt={data.alt}
title={data.title}
v-on:load={this.load}
style={{ width: "100%" }}
/>
</picture>
)}
<noscript
Expand Down

1 comment on commit 59f38a8

@vercel
Copy link

@vercel vercel bot commented on 59f38a8 Mar 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.