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]: #33729

Open
2 tasks done
Gn0ume opened this issue Jan 25, 2025 · 0 comments
Open
2 tasks done

[Bug]: #33729

Gn0ume opened this issue Jan 25, 2025 · 0 comments

Comments

@Gn0ume
Copy link

Gn0ume commented Jan 25, 2025

Component

Carousel

Package version

9.54.13

React version

18.3.1

Environment

any

Current Behavior

component throws exception when resizing the page:

@fluentui_react-comp…js?v=2d5cf0e3:53320 Uncaught TypeError: Cannot read properties of undefined (reading 'map')
    at @fluentui_react-comp…v=2d5cf0e3:53320:47
    at @fluentui_react-comp…?v=2d5cf0e3:55846:7
    at @fluentui_react-comp…?v=2d5cf0e3:1658:12
    at @fluentui_react-comp…v=2d5cf0e3:54927:38
    at Array.forEach (<anonymous>)
    at Object.emit (@fluentui_react-comp…v=2d5cf0e3:54927:23)
    at Object.reActivate [as reInit] (@fluentui_react-comp…v=2d5cf0e3:55085:18)
    at defaultCallback (@fluentui_react-comp…v=2d5cf0e3:54053:20)
    at ResizeObserver.<anonymous> (@fluentui_react-comp…?v=2d5cf0e3:54061:9)

Expected Behavior

compomnent should now throw exceptions on page (container) resize.

Reproduction

https://stackblitz.com/edit/qpdudpny

Steps to reproduce

  1. Open web-tools console
  2. Start resizing the window on X-axis
  3. when dots in carousel disapear (due to wider container) library throws exeption to the console.

Are you reporting an Accessibility issue?

None

Suggested severity

Urgent - No workaround and Products/sites are affected

Products/sites affected

No response

Are you willing to submit a PR to fix?

yes

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.
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

1 participant