-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
onCellValueChanged
event not triggered by paste in v21.2.0
#3364
Comments
We have the same issue, reported via ZenDesk as well |
Hi, Thank you for your email. We are aware of this issue and have a feature request in our backlog: You can follow the status of feature requests, bugs and releases using our pipeline: If you are an ag-Grid Enterprise Customer, please raise this in our Zendesk support system - contact info@ag-grid.com for access. This is our primary channel for Support. This is the reference and summary of the relevant issue: AG-3298 onCellValueChanged does not fire when copying/pasting a range in the grid |
Issue ag-grid#3364 As of version 21.2.1 ag-grid no longer triggers onCellValueChanged when pasting in data. This is due to setValue being called with suppressCellValueChangedEvent=true in updateCellValue method inside clipboardService class. Suggested fix is to remove true parameter and set suppressCellValueChangedEvent to undefined. Or to remove return statement in ag-grid-enterprise ValueService.prototype.setValue ` if (suppressCellValueChangedEvent) { return; } `
do you have any ETA to fix this issue(AG-3298 onCellValueChanged does not fire when copying/pasting a range in the grid)?. |
what's the work around? this is pretty major... |
According to the ag-Grid changelog, this should be fixed in |
It works after the upgrade. We have validated in our app.
On Thu, 10 Oct 2019 at 7:53 pm Matthew Dunnerstick ***@***.***> wrote:
what's the work around? this is pretty major...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3364?email_source=notifications&email_token=ADH343BOKWZBFK4CWFYHX23QN523ZA5CNFSM4IUSMV22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA5NCNY#issuecomment-540725559>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADH343DTICVRKZD2MYX7XDLQN523ZANCNFSM4IUSMV2Q>
.
--
Sent from Gmail Mobile
|
I take my words back. After the patch the behavior is actually weird, cellValue changed is firing but the value getters have stopped working. |
@ajkaushik , did you report the regression on Zendesk? I need this bug fixed before I can upgrade my version of ag-Grid, so I want to follow the thread to be informed when it's fixed. |
Yes, Its in there release pipeline already for next version.
…On Thu, Oct 17, 2019 at 7:31 PM Anna Borja ***@***.***> wrote:
@ajkaushik <https://github.com/ajkaushik> , did you report the regression
on Zendesk? I need this bug fixed before I can upgrade my version of
ag-Grid, so I want to follow the thread to be informed when it's fixed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3364?email_source=notifications&email_token=ADH343F2NI2SIJKFBTYNKULQPCVP7A5CNFSM4IUSMV22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBRCWEI#issuecomment-543304465>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADH343FDHNFOSYSPJICEUULQPCVP7ANCNFSM4IUSMV2Q>
.
|
@ajkaushik , did |
It works in v21.2.2. I have MAJOR issues with 22.0.0. I cannot copy and paste anything! All Copy and Paste has broken. I rolled back to 21.2.2. and everything works fine, including this ticket. It's such a huge bug, I didn't log it because I just figured everyone will be complaining about it. |
@matthewstick , yeah that's what I'm experiencing as well: copy-paste is completely broken in
|
@annaborja I rolled back to 21.2.2 and all is good, including this ticket. This is such a huge issue - I expect a 22.0.1 ticket any day now @ajkaushik - please take note! |
Copy-paste seems to be working in their documentation example (https://www.ag-grid.com/javascript-grid-clipboard/#clipboard-example), but it broke in my code, so clearly something changed in the implementation between versions 21 and 22. |
Thanks @matthewstick ! I'll try 21.2.2. |
@annaborja @matthewstick It works with the upgrade, we just upgraded to v22.0.0. Copy/paste works ok and expected events are being fired. |
@ajkaushik it doesn't work. Both Ann and I had to roll back. Copy and Paste, via 22.0.0, is 100% broken. This is not a hypothetical situation. We upgraded to 22.0.0, ran into major issues, then had to roll back. My guess is you did not test all scenarios? |
@matthewstick It works in our application, just a simple user like yourself and obviously have not tested all the scenarios. But simple copy/paste works and fires cellValueChanged and formatters correctly. I would suggest to open a new issue. We have upgraded to use @ag-grid-enterprise/all-modules package. |
@ajkaushik Ah, ok I thought you were on the Craft team. That's why I was pushing back. Sorry about that. Thanks! |
Copy and paste also broke in our app after upgrading to 22.0.0, rolling back to 21.2.2 fixed the problem. |
For those looking for an update on this issue (at least for the I first created a simple repo that demonstrates the issue so their support team could review: https://github.com/lroot/ag-grid-copy-paste-bug-demo The support team then responded:
An example workaround was provided: https://stackblitz.com/edit/ag-grid-vue-hello-world-qi4hhv?file=app.js This involves extracting the clipboard module explicitly from the ag-grid-enterprise module and registering it with the ag-grid-community module: |
That worked, thank you very much @lroot ! |
Thank you for the workaround. But is there no proper fix provided by ag-grid since this "bug" exists ? I am expecting that callbacks is triggered when pasting multiple cells :). |
I'm submitting a ...
Note: I am an Enterprise customer, but I have not yet received credentials for filing this bug in Zendesk.
Current behavior
When pasting (cmd+V) into the grid, the
onCellValueChanged
callback is not called.You can see this bug in the ag-Grid documentation. In the Clipboard Example (https://www.ag-grid.com/javascript-grid-clipboard/#clipboard-example), if you paste into the grid,
"cellValueChanged"
is never logged in the console, contrary to what the documentation states.Expected behavior
onCellValueChanged
callback should be called for every pasted cell. This behavior works correctly inv21.1.1
, so it looks like a regression introduced inv21.2.0
.ag-Grid version: 21.2.0
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
Language: ES6
The text was updated successfully, but these errors were encountered: