We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aed7510 commit effbffaCopy full SHA for effbffa
tns-core-modules/ui/image/image-common.ts
@@ -28,7 +28,7 @@ export abstract class ImageBase extends View implements ImageDefinition {
28
let value = this.src;
29
let originalValue = value;
30
let sync = this.loadMode === "sync";
31
- if (typeof value === "string") {
+ if (typeof value === "string" || value instanceof String) {
32
value = value.trim();
33
this.imageSource = null;
34
this["_url"] = value;
0 commit comments