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

Dropdown filter causes inline editor to close prematurely in editMode="cell" in DataTable #7287

Closed
nathanmerry opened this issue Oct 1, 2024 · 1 comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted

Comments

@nathanmerry
Copy link

Describe the bug

Description: There is an issue with the DataTable component when using editMode="cell". When using a Dropdown component with a search filter as an editor, interacting with the filter causes the inline editor to close prematurely, preventing further interaction with the dropdown.

Reproducer

https://stackblitz.com/edit/vitejs-vite-beqcxu?file=src%2FApp.tsx

System Information

System:
    OS: macOS 14.3.1
    CPU: (8) x64 Apple M1
    Memory: 23.21 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.0 - /usr/local/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 10.2.4 - /usr/local/bin/npm
  Browsers:
    Chrome: 129.0.6668.71
    Edge: 114.0.1823.51
    Safari: 17.3.1
    Safari Technology Preview: 14.2
  npmPackages:
    primereact: ^10.6.5 => 10.6.5 
    react: ^18.2.0 => 18.3.1 
    tailwindcss: ^3.4.3 => 3.4.3

Steps to reproduce the behavior

  1. Set up a DataTable component with editMode="cell".
  2. Use a Dropdown component as a cell editor inside a Column, with the filter prop enabled to allow searching within the dropdown.
  3. Click on the cell to activate the inline editor.
  4. Try clicking on the filter input inside the dropdown to search for an option.

Expected behavior

Expected Behavior: The dropdown should remain open, and the inline editor should stay active while interacting with the dropdown's search filter.

Actual Behavior: When clicking on the dropdown filter input, the inline editor closes, and the dropdown disappears, making it impossible to search and select an option.

@nathanmerry nathanmerry added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 1, 2024
@melloware melloware added Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Oct 1, 2024
Copy link

github-actions bot commented Oct 1, 2024

This issue is a duplicate and has already been reported: #7158 . Please review other issues both open and closed for a similar issue to this one.

@melloware melloware closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted
Projects
None yet
Development

No branches or pull requests

2 participants