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 3e35a2c commit 74fc465Copy full SHA for 74fc465
src/js-executor/index.js
@@ -64,6 +64,10 @@ export default class JsExecutor {
64
return onError && onError.apply(this, arguments);
65
};
66
67
+ // It is necessary to work in Firefox
68
+ // for some reason resize function in Compose does not work in Firefox in invisible block
69
+ this.iframe.style.display = 'block';
70
+
71
const result = await this.executeWasm(
72
jsCode,
73
wasm,
@@ -72,7 +76,9 @@ export default class JsExecutor {
76
processError,
77
);
74
78
75
- if (!exception) {
79
+ if (exception) {
80
+ this.iframe.style.display = 'none';
81
+ } else {
82
this.iframe.style.display = 'block';
83
if (outputHeight) this.iframe.style.height = `${outputHeight}px`;
84
}
0 commit comments