-
Notifications
You must be signed in to change notification settings - Fork 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
DomHandler.js: getComputedStyle getPropertyValue should be in hyphen case. #6055
Labels
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Comments
hitosu
added
the
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
label
Feb 29, 2024
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Feb 29, 2024
melloware
added a commit
to melloware/primereact
that referenced
this issue
Feb 29, 2024
great catch! Please review my PR. |
Yes, all good! |
github-actions
bot
added
the
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
label
Mar 1, 2024
I will leave this open until it's merged |
Sure, sorry :) |
melloware
removed
the
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
label
Mar 1, 2024
nitrogenous
added a commit
that referenced
this issue
Mar 18, 2024
Fix #6055: DomHandler incorrect case for computed styles
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
scrollInView
inDomHandler
does not scroll to the very top of dropdown list if that list has top border or padding.This is happening because
getPropertyValue
gets values using camel case (borderTopWidth
) instead of hyphen case (border-top-width
)Additionally, there the same problem in
getScrollableParents
function withoverflowX
andoverflowY
.Reproducer
No response
PrimeReact version
10.5.1
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
any
Steps to reproduce the behavior
Expected behavior
Changing
getPropertyValue
arguments to hyphen case resolves the problem.The text was updated successfully, but these errors were encountered: