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
2024-12-26 13:11:31 +00:00
committed by Fangdun Tsai
parent 835e7c434e
commit 6fcdd015aa
7 changed files with 177 additions and 26 deletions

View File

@@ -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}