You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours
I'm submitting a ... (check one with "x")
[ ] bug report
[x ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57
Plunkr Case (Bug Reports)
Please fork the plunkr below and create a case demonstrating your bug report. Issues without a plunkr have much less possibility to be reviewed.
Current behavior
Currently, button takes the priority over ending cell editing validator. If we are editing a field and click a button (save for example), the validation hasn't fired yet thus progressing with the bad data or in my case staged data that hasn't been validated yet. My example includes a simplified version of my staging of data. My project's version tracks multiple updates, whereas the one in the plunker example only allows one, but it's the same idea.
Expected behavior
The validator fires before the button fires. I've been able to temporarily solve this by editing the BodyCell source:
(bindDocumentEditListener method) by changing:
document.addEventListener('click', this.documentEditListener);
to
document.addEventListener('click', this.documentEditListener, true);
This has caused other issues, but I was able to work around those. Fixing it completely, probably requires more changes than just that, but I've made it workable for me currently.
There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
Please fork the plunkr below and create a case demonstrating your bug report. Issues without a plunkr have much less possibility to be reviewed.
https://plnkr.co/edit/3KpsZTqlVa7KGYnh6ZVj?p=preview
Current behavior
Currently, button takes the priority over ending cell editing validator. If we are editing a field and click a button (save for example), the validation hasn't fired yet thus progressing with the bad data or in my case staged data that hasn't been validated yet. My example includes a simplified version of my staging of data. My project's version tracks multiple updates, whereas the one in the plunker example only allows one, but it's the same idea.
Expected behavior
The validator fires before the button fires. I've been able to temporarily solve this by editing the BodyCell source:
(bindDocumentEditListener method) by changing:
document.addEventListener('click', this.documentEditListener);
to
document.addEventListener('click', this.documentEditListener, true);
This has caused other issues, but I was able to work around those. Fixing it completely, probably requires more changes than just that, but I've made it workable for me currently.
Minimal reproduction of the problem with instructions
https://plnkr.co/edit/3KpsZTqlVa7KGYnh6ZVj?p=preview
Browser: all
Language: all
The text was updated successfully, but these errors were encountered: