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 0db6729 commit b833ae9Copy full SHA for b833ae9
packages/core/src/dom_components/view/ComponentImageView.ts
@@ -95,9 +95,12 @@ export default class ComponentImageView<TComp extends ComponentImage = Component
95
}
96
97
onError() {
98
- const fallback = this.model.getSrcResult({ fallback: true });
+ const { model, el } = this;
99
+ const fallback = model.getSrcResult({ fallback: true });
100
if (fallback) {
- this.el.src = fallback;
101
+ // Remove srcset to prevent error loop on src update #6332
102
+ if (el.srcset) el.srcset = '';
103
+ el.src = fallback;
104
105
106
0 commit comments