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 13b362d commit 914a07dCopy full SHA for 914a07d
1 file changed
packages/builder-web-core/widgets-native/html-image/index.ts
@@ -50,7 +50,8 @@ export class ImageElement extends SelfClosingContainer {
50
"src",
51
new StringLiteral(this.src || image_smallest_fallback_source_base_64)
52
),
53
- !!!this.alt && new JSXAttribute("alt", new StringLiteral(this.alt)),
+ typeof this.alt === "string" &&
54
+ new JSXAttribute("alt", new StringLiteral(this.alt)),
55
];
56
57
return <StylableJSXElementConfig>{
0 commit comments