Skip to content

Commit

Permalink
Merge branch 'main' into bugfix/property-editor-ui-value-can-be-undef…
Browse files Browse the repository at this point in the history
…ined-fix
  • Loading branch information
nielslyngsoe authored Mar 1, 2024
2 parents e0bfadd + 2c55d98 commit 3edeae2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/packages/tiny-mce/plugins/tiny-mce-linkpicker.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ export default class UmbTinyMceLinkPickerPlugin extends UmbTinyMcePluginBase {
const linkPickerData = await modalHandler.onSubmit().catch(() => undefined);
if (!linkPickerData) return;

this.#linkPickerData = linkPickerData;
// TODO: This is a workaround for the issue where the link picker modal is returning a frozen object, and we need to extract the link into smaller parts to avoid the frozen object issue.
this.#linkPickerData = { link: { ...linkPickerData.link } };
this.#updateLink();
}

Expand Down

0 comments on commit 3edeae2

Please sign in to comment.