diy-template-components 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.es.js +5 -0
- package/build/index.es.js.map +1 -1
- package/build/index.js +5 -0
- package/build/index.js.map +1 -1
- package/package.json +8 -5
package/build/index.es.js
CHANGED
|
@@ -1140,6 +1140,11 @@ const NextImageRenderer = ({
|
|
|
1140
1140
|
pageData,
|
|
1141
1141
|
isMobile
|
|
1142
1142
|
} = useContext(PageContext);
|
|
1143
|
+
|
|
1144
|
+
// checkif src url is encoded or not, if not encode it
|
|
1145
|
+
if (src && src.includes(' ')) {
|
|
1146
|
+
src = encodeURI(src);
|
|
1147
|
+
}
|
|
1143
1148
|
try {
|
|
1144
1149
|
let {
|
|
1145
1150
|
refSetter,
|