ag-grid: `onCellValueChanged` event not triggered by paste in v21.2.0

I’m submitting a …

[x] bug report
[] feature request
[] support request

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.

image

Expected behavior onCellValueChanged callback should be called for every pasted cell. This behavior works correctly in v21.1.1, so it looks like a regression introduced in v21.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

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 3
  • Comments: 23 (1 by maintainers)

Commits related to this issue

Most upvoted comments

For those looking for an update on this issue (at least for the ag-grid-enterprise module), I do have an open ticket with Enterprise support which looks like it will address this.

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:

… the issue you’re having is down to a bug (AG-3694-Clipboard module missing from ag-grid-enterprise) which should be fixed in the next release…

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:

screenshot

Yes, Its in there release pipeline already for next version.

On Thu, Oct 17, 2019 at 7:31 PM Anna Borja notifications@github.com 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 https://github.com/ag-grid/ag-grid/issues/3364?email_source=notifications&email_token=ADH343F2NI2SIJKFBTYNKULQPCVP7A5CNFSM4IUSMV22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBRCWEI#issuecomment-543304465, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADH343FDHNFOSYSPJICEUULQPCVP7ANCNFSM4IUSMV2Q .

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.