Skip to content

Commit

Permalink
fix(Image): pass loading prop/attribute through to the img element (
Browse files Browse the repository at this point in the history
  • Loading branch information
noinkling authored Nov 24, 2020
1 parent c828368 commit 1c8b20b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/htmlPropsUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const htmlInputEvents = [

export const htmlInputProps = [...htmlInputAttrs, ...htmlInputEvents]

export const htmlImageProps = ['alt', 'height', 'src', 'srcSet', 'width']
export const htmlImageProps = ['alt', 'height', 'src', 'srcSet', 'width', 'loading']

/**
* Returns an array of objects consisting of: props of html input element and rest.
Expand Down

0 comments on commit 1c8b20b

Please sign in to comment.