Skip to content

Commit

Permalink
don’t remove iframe on unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosant committed Apr 26, 2022
1 parent d143292 commit 992545b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/vis_type_script/public/renderer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const ScriptRenderer: React.FunctionComponent<{
React.useEffect(() => {
if (!iframeRef.current) throw new Error('Iframe init error');
const iframeEl = iframeRef.current;
const endpoint = createEndpoint(fromIframe(iframeEl));
const endpoint = createEndpoint(fromIframe(iframeEl, { terminate: false }));

endpoint.expose({
esSearch: (payload, options) => {
Expand Down

0 comments on commit 992545b

Please sign in to comment.