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

Fix #2666: Fix overlay components in cell editor #5373

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

melloware
Copy link
Member

@melloware melloware commented Nov 22, 2023

Fix #2666: Fix overlay components in cell editor

Fix #5320 DataTable support Dropdown in cell edit mode
Fix #3079
Fix #2097

What is happening:

  1. Item in dropdown is clicked
  2. cellEditValidator fires
  3. onCellEditComplete fires
  4. onChange on dropdown component fires

So the dropdown editorCallback doesn't get called until the end and its too late. By using setTimeout(0) it changes the order to this...

  1. Item in dropdown is clicked
  2. onChange on dropdown component fires
  3. cellEditValidator fires
  4. onCellEditComplete fires

@melloware melloware added the Core Team Issue or pull request has been *opened* by a member of Core Team label Nov 22, 2023
Copy link

vercel bot commented Nov 22, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
primereact ⬜️ Ignored (Inspect) Visit Preview Nov 22, 2023 3:25pm
primereact-v9 ⬜️ Ignored (Inspect) Visit Preview Nov 22, 2023 3:25pm

@melloware melloware merged commit 8bd09a3 into primefaces:master Nov 22, 2023
9 checks passed
@melloware melloware deleted the PR2666 branch November 22, 2023 15:29
@melloware melloware mentioned this pull request Jan 9, 2024
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Team Issue or pull request has been *opened* by a member of Core Team
Projects
None yet
1 participant