Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix focusgroup in tree when focusgroup is natively supported",
"packageName": "@fluentui/web-components",
"email": "machi@microsoft.com",
"dependentChangeType": "patch"
}
1 change: 0 additions & 1 deletion packages/web-components/src/tree/tree.template.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<f-template name="fluent-tree" shadowrootmode="open">
<template
tabindex="0"
focusgroup="menu inline block nowrap nomemory"
@click="{clickHandler($e)}"
@keydown="{keydownHandler($e)}"
Expand Down
3 changes: 1 addition & 2 deletions packages/web-components/src/tree/tree.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ import type { Tree } from './tree.js';

export const template = html<Tree>`
<template
tabindex="0"
focusgroup="menu inline block nowrap nomemory"
@click="${(x, c) => x.clickHandler(c.event)}"
@keydown="${(x, c) => x.keydownHandler(c.event as KeyboardEvent)}"
@change="${(x, c) => x.changeHandler(c.event)}"
@toggle="${(x, c) => x.itemToggleHandler()}"
@toggle="${x => x.itemToggleHandler()}"
>
<slot ${ref('defaultSlot')} @slotchange="${x => x.handleDefaultSlotChange()}"></slot>
</template>
Expand Down
Loading