You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found an issue that every click on Image + text/text + Image resets source of those controls.
Function below checks whether we use DynamicImages or not and it either resets our src to "" or replaces with a placeholder.. It happens on each click. main.js:
if (isDynamic) {
var width = sel.props.width.get();
var height = sel.props.height.get();
var maxWidth = sel.functions.getMaxWidth();
if (!width || width === "auto") {
sel.props.width.set(maxWidth);
}
if (!height || height === "auto") {
sel.props.height.set(maxWidth);
}
src("https://via.placeholder.com/" + sel.props.width.get() + "x" + sel.props.height.get());
} else if (isDynamicPrev !== isDynamic) {
resetImage();
}
isDynamicPrev = isDynamic;
});
This is how it appears:
I've added couple of image controls and added a random image:
Then clicked on first one and last one:
Both ended up with src(uknown):
Could you please help me with solution for that? Or maybe fast fix?
Thank you in advance.
The text was updated successfully, but these errors were encountered:
Hello,
I've found an issue that every click on Image + text/text + Image resets source of those controls.
Function below checks whether we use DynamicImages or not and it either resets our src to "" or replaces with a placeholder.. It happens on each click.
main.js:
This is how it appears:
I've added couple of image controls and added a random image:
Then clicked on first one and last one:
Both ended up with src(uknown):
Could you please help me with solution for that? Or maybe fast fix?
Thank you in advance.
The text was updated successfully, but these errors were encountered: