Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 1eddbe1

Browse files
authored
feat(image): added srcset to the imageProps
1 parent c56d785 commit 1eddbe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/chakra-ui-core/src/CImage/CImage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ const CImage = {
7272
render (h) {
7373
let imageProps
7474
if (this.ignoreFallback) {
75-
imageProps = { src: this.src }
75+
imageProps = { src: this.src, srcset: this.srcset }
7676
} else {
77-
imageProps = { src: this.hasLoaded ? this.src : this.fallbackSrc }
77+
imageProps = { src: this.hasLoaded ? this.src : this.fallbackSrc, srcset: this.srcset }
7878
}
7979
return h(CNoSsr, [
8080
h('img', {

0 commit comments

Comments
 (0)