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

Tooltip: data-pr-position doesn't change where the tooltip goes #2878

Closed
HashBR opened this issue May 11, 2022 · 0 comments
Closed

Tooltip: data-pr-position doesn't change where the tooltip goes #2878

HashBR opened this issue May 11, 2022 · 0 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@HashBR
Copy link
Contributor

HashBR commented May 11, 2022

Describe the bug

data-pr-position position doesn't seem to be working on Global Tooltips.

I've tried

data-pr-position="left"
data-pr-position="top"
data-pr-position="bottom"

And none of them seemed to change where my tooltip would appear. Which was always on the default "right" position.

I've found a similar issue that was fixed in the past: #1811

Reproducer

https://codesandbox.io/s/primereact-tooltip-position-2gyr8h?file=/src/index.js:641-657

or

https://2gyr8h.csb.app/

PrimeReact version

8.0.1

React version

18.x

Language

ALL

Build / Runtime

Create React App (CRA)

Browser(s)

Mozilla Firefox 100

Steps to reproduce the behavior

  1. Go to the sandbox provied.
  2. Mouse over "Big!" and "Smaller!" redboxes.
  3. Tooltip will appear on the right even though on the code it's stating to appear on "top" of it.

Expected behavior

data-pr-position is supposed to let me pick where the Global Tooltip would show.

@HashBR HashBR added the Type: Bug Issue contains a defect related to a specific component. label May 11, 2022
melloware added a commit to melloware/primereact that referenced this issue May 12, 2022
@melloware melloware self-assigned this May 12, 2022
@melloware melloware added this to the 8.2.0 milestone May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants