microsoft / fluentui

Fluent UI web represents a collection of utilities, React components, and web components for building web applications.

Home Page:https://react.fluentui.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: TreeItemLayout actions slot `onVisibilityChange` is not called if initial controlled state is false

YuanboXue-Amber opened this issue · comments

commented

Component

Tree

Package version

local latest master

React version

18

Environment

edge

Reproduction

https://stackblitz.com/edit/c2ty2i-ueoxhd?file=src%2Fexample.tsx,package.json

Current Behavior

Open the reproduction, hover on the tree item, notice the action slot is not visible

Expected Behavior

action slot should be visible on hover

Are you reporting an Accessibility issue?

None

Suggested severity

High - No workaround

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.