From 1c8b20b7ee53fc662f8e0446dc8be5d2cb58a4c3 Mon Sep 17 00:00:00 2001 From: Malcolm Date: Tue, 24 Nov 2020 23:17:41 +1300 Subject: [PATCH] fix(Image): pass `loading` prop/attribute through to the `img` element (#4116) --- src/lib/htmlPropsUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/htmlPropsUtils.js b/src/lib/htmlPropsUtils.js index 0615fb48d5..cbd84fb3b8 100644 --- a/src/lib/htmlPropsUtils.js +++ b/src/lib/htmlPropsUtils.js @@ -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.