Editing last record scrolls the table to top

Tags: #<Tag:0x00007f8b2b7b4bf8>

After editing a cell in last row, and press enter key, I noticed the table scrolls to top. This happens only when editing the last record. I’m able to reproduce this issue in demo fiddle as well. Please advise.

https://handsontable.com/examples?headers

Hey @c_balaji

that is an intended behavior. Would you like to disable this in your project?

Yes, just for the last record. Thanks.

To accomplish it you would need to modify the enterMoves function via updateSettings. To make it work after each change in the cell you can use the afterChange hook.

Thank you. Can you please let me know if this pseudo code matches your suggestion?

afterChangeHook : function() {

if (lastrow) {

instance.updateSettings(eventMoves: {row: 0, col:0})

}

There’s something wrong with the enterMoves option.

But I have a new idea http://jsfiddle.net/uxzrkjyo/

Can you please be specific about what is wrong with the enterMoves option? Should we create a bug? Thanks.

Sorry for the shady explanation. I am investigating this case. I have used this code
https://jsfiddle.net/Lcem68ua/ but it does not change the enterMoves behavior.

There was a typo in the example it should be enterMoves not the eventMoves.

Here’s a working demo https://jsfiddle.net/vmoad8kn/