ag-grid / ag-grid-aurelia

Aurelia wrapper for ag-Grid project
MIT License
23 stars 8 forks source link

EventListener onCellValueChanges not firing for blur events #9

Closed LostLucidity closed 7 years ago

LostLucidity commented 7 years ago

Hello, I'm submitting a feature or bug request. I'm not sure.

I want to capture data from a cell input. I'm using onCellValueChanges which fires when I press enter during editing but it does not fire when clicking away to another part of the page or when tabbing. The text cursor goes away in both instances so editing isn't possible until I click or tab to the field again.

When there is another row on the grid the event does fire when tabbing and clicking on it as I would want but if there are no other rows then it stays in it's editing mode until you are focused on it and press enter.

I want an option to have the cell save on the blur event otherwise it's awkward to click away and work on another part of the page and not have your entry resolved.

Thank you.

LostLucidity commented 7 years ago

Looks to have been resolved in ag-grid Version 9.0.0

https://www.ag-grid.com/change-log/changeLogIndex.php#gsc.tab=0

"Enhancement (AG-307): New property stopEditingWhenGridLosesFocus, for cell editing, so that taking focus off the grid stops the editing and saves values."