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

onAfterChange is called twice for each change. #106

Closed
Saint-Fiasco opened this issue Sep 1, 2015 · 2 comments
Closed

onAfterChange is called twice for each change. #106

Saint-Fiasco opened this issue Sep 1, 2015 · 2 comments
Assignees
Milestone

Comments

@Saint-Fiasco
Copy link

Playing around with this demo http://handsontable.github.io/ngHandsontable/demo/#/callbacks-callbacks-by-object

I noticed that if I add the following callback:

onAfterChange: function() {
  console.log('onAfterChange call');
}

Every time I modify a cell, 'onAfterChange call' is printed on the console twice.

@Saint-Fiasco
Copy link
Author

This works correctly on this other demo: http://handsontable.github.io/ngHandsontable/demo/#/callbacks-callbacks-declarative-way

This bug occurs only when the callback is done via the settings object.

@budnix budnix self-assigned this Sep 1, 2015
@budnix budnix added the Bug label Sep 1, 2015
@budnix
Copy link
Member

budnix commented Sep 1, 2015

Yes, you're right this is a bug. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants