-
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
Dropdown: component interactable in disabled div #5414
Labels
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Comments
RolT
added
the
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
label
Nov 27, 2023
Agreed. |
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
Nov 27, 2023
Just tested your scenario and |
melloware
added a commit
to melloware/primereact
that referenced
this issue
Nov 27, 2023
I got it PR submitted |
melloware
added a commit
that referenced
this issue
Nov 27, 2023
Thanks that was fast ! |
Yeah you did and that still didn't work while testing so the only thing that i could make work all the time was the |
melloware
added a commit
to melloware/primereact
that referenced
this issue
Jan 9, 2024
melloware
added a commit
that referenced
this issue
Jan 9, 2024
* Fix #5384: TreeTable support hidden columns * fix:#5553:TreeTable: need to be converted to data- lookups instead of className lookups * TreeTable * Fix #5597: TreeTable body align * Fix #5393: Tree propagate icons to leaf nodes * Fix #5233: Cell editor ColumnEditorOptions param fix * Fix #5398: Slider with min value rendered incorrectly * Fix #5340: MutliSelect emptyMessage don't add to DOM * Fix #4190: Chip aria fixes * Fix #5414: p-disabled for svg icons * Fix #5424: CascadeSelect use data instead of CSS selector * Fix #5425: CascadeSelect fix for StrictMode * Fix #5440: InputText only print className once
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Using the dropdown component inside a
<div class="p-disabled"></div>
section does not work as expected. It is still possible to click on the dropdown icon.This is a CSS issue:
primereact/components/lib/componentbase/ComponentBase.js
Lines 264 to 266 in ef338f5
takes precedence over:
primereact/components/lib/componentbase/ComponentBase.js
Lines 318 to 322 in ef338f5
so it should probably be
svg.p-icon:not(p-disabled)
instead.Reproducer
https://codesandbox.io/p/sandbox/primereact-demo-forked-5dmz9y
PrimeReact version
10.0.9
React version
18.x
Language
ES6
Build / Runtime
Create React App (CRA)
Browser(s)
Firefox
Steps to reproduce the behavior
Add a Dropdown component inside
<div class="p-disabled"></div>
Expected behavior
The icon should not be clickable.
The text was updated successfully, but these errors were encountered: