Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Row selecting in DetailedList doesn't work in Vite Dev mode #32808

Closed
2 tasks done
ThijsOnGitHub opened this issue Sep 10, 2024 · 1 comment
Closed
2 tasks done
Assignees

Comments

@ThijsOnGitHub
Copy link

ThijsOnGitHub commented Sep 10, 2024

Library

React / v8 (@fluentui/react)

System Info

System:
    OS: Windows 11 
  Browsers:
    Edge: Chromium (127.0.2651.86)
    Internet Explorer: 11.0.22621.3527

Are you reporting an Accessibility issue?

None

Reproduction

https://codesandbox.io/p/sandbox/vite-fluent-ui-demo-8zglrm

Bug Description

Actual Behavior

When you run the command vite and you run it, you can't see the blue checkmark on the selected rows in the DetailedList Component. See repoduction where I created a default vite project and added the detailedList example from the documentation. When you select an row, you don't see the blue checkmark showing that the row is selected.

Expected Behavior

When you run vite you can see the checkmarks when you select an row.

Logs

No response

Requested priority

Normal

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.
@spmonahan
Copy link
Contributor

If you remove <StrictMode> in main.tsx the issue disappears. Obviously this is not an actual solution, but a workaround 🙂

This issue will need more debugging to find the root cause but in the past I've seen it related to class component lifecycle methods. For example, an event listener is wired up in a constructor and torn down in componentWillUnmount so it can never be reconnected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants