-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Tooltip: positioned incorrectly in React 18 #3065
Comments
No you are right with React 17 it is working: https://codesandbox.io/s/primereact-test-forked-h2fpcx?file=/src/index.js |
OK it is because of these lines creating the Tooltip component. if (visibleState) {
const element = createElement();
return <Portal element={element} appendTo={props.appendTo} visible />;
}
return null; In React 18 that is somehow not properly creating the Portal and element even when the |
Amazing how quickly that was fixed, yet, is there a workaround until 9.0.0 comes out? |
I think an 8.3.0 will be coming out shortly with this fix. |
Great job guys! |
Describe the bug
Tooltips are displayed at the bottom of the page, without any content when the application is rendered using the new React 18 root API.
Reproducer
https://codesandbox.io/s/little-voice-s8ued1?file=/src/demo/TooltipDemo.tsx:7828-7838
PrimeReact version
8.2.0
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Tooltip should appear where it is supposed to.
The text was updated successfully, but these errors were encountered: