fix(component): lit portal not re-rendering in inline links case (#9321)

* uses `portal.key` in templates
* updates `portal.id`  for use in queries
This commit is contained in:
fundon authored and Fangdun Tsai committed 2024-12-27 15:43:13 +08:00
1 parent 835e7c434e
commit 6fcdd015aa
7 files changed
+177 -26

No files matched your search

@@ -98,6 +98,7 @@ export function attachmentViewToggleMenu({
button => button.type,
({ type, label, action, disabled }) => html`
<editor-menu-action
aria-label=${label}
data-testid=${`link-to-${type}`}
?data-selected=${type === viewType}
?disabled=${disabled}