Dropdown breaks in shadowRoot when getScrollableParent() encounters document fragment #2352
Labels
Type: Bug
Issue contains a defect related to a specific component.
Milestone
There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours
I'm submitting a ... (check one with "x")
Codesandbox Case (Bug Reports)
https://codesandbox.io/s/primereact-dropdown-breaks-in-shadowroot-utwe0?file=/src/index.js
Current behavior
Upon clicking the Dropdown, it briefly renders before throwing an exception:
Expected behavior
Dropdown opens and does not throw an exception.
Minimal reproduction of the problem with instructions
Render the React app inside a shadowRoot, and add one Dropdown component to the app. No other specific configuration is needed (see the codesandbox I shared).
Please tell us about your environment:
Windows 10, VSCode, building using webpack and deploying to a website.
React version:
17.x.x - There's an issue with events in the shadowDom that's addressed in React 17, so prior versions of React won't work without additional workarounds.
PrimeReact version:
6.6.0
Browser:
Latest versions of Chrome and Firefox on Windows.
Language:
Typescript, ES7.
The text was updated successfully, but these errors were encountered: