Skip to content

Commit 1c8b20b

Browse files
authored
fix(Image): pass loading prop/attribute through to the img element (#4116)
1 parent c828368 commit 1c8b20b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/htmlPropsUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const htmlInputEvents = [
8181

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

84-
export const htmlImageProps = ['alt', 'height', 'src', 'srcSet', 'width']
84+
export const htmlImageProps = ['alt', 'height', 'src', 'srcSet', 'width', 'loading']
8585

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

0 commit comments

Comments
 (0)