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.
2 parents aed7510 + effbffa commit 795ac06Copy full SHA for 795ac06
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