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

DataTable: Cell edit support Dropdown - with Filter input #6130

Closed
stosveta opened this issue Mar 12, 2024 · 4 comments
Closed

DataTable: Cell edit support Dropdown - with Filter input #6130

stosveta opened this issue Mar 12, 2024 · 4 comments
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@stosveta
Copy link

Describe the bug

I'm intending filter items using dropdown in dataTable cell during cell editing.
When the filter input that is shown on the top of the dropdown list is clicked - the dropdown disappears (if dropdown is not in the cell it doesn't disappear and behaves as expected). And to fix this behaviour - to be able click with the mouse on the dropdown filtering box - I do need use append={'self'} but then I start having the table layout problems.

Any help with this will be very appreciated.
Thanks a lot.


This is probably [already existing bug]((#2666 (comment)) but not sure that comment on closed bugs are being seen so posting new bug? (sorry if a'm wrong)

Reproducer

No response

PrimeReact version

10.5.1

React version

18.x

Language

ES6

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

Expecting opened dropdown not to disappear on mouse click on filter control of the dropdown

@stosveta stosveta 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 12, 2024
@myownsumm
Copy link

Facing the same issue with primereact 10.8.2.

Trying to use DataTable with a DropDown editor and filter prop enabled. AppendTo is set to {document.body}, otherwise it looks "strange".

edit mode is always being switched to view mode while clicking the filter input and there is no way to prevent this.

@myownsumm
Copy link

const [bindDocumentClickListener, unbindDocumentClickListener] = useEventListener({

this thing is definitely related

@myownsumm
Copy link

Fixed in 10.9.1!

https://www.npmjs.com/package/primereact/v/10.9.1

@melloware 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 Jan 2, 2025
@melloware melloware added this to the 10.9.1 milestone Jan 2, 2025
@melloware
Copy link
Member

nice closing ticket!

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

No branches or pull requests

3 participants