Hello. Need your help with another issue if you don't mind. The add-on is

Hello. Need your help with another issue if you don’t mind. The add-on is now working in my project. However, the issue now is that in any grid, it is not capturing the correct row index and row item. Only in the last row, it shows the correct row index and item. In all other rows, the code below shows an index = -1 and item = null. Can you please help me understand what I could be doing wrong here? Here is my code snippet below —>

nav.addRowEditListener({event -> 
		
		grid.getDataProvider().refreshAll();
		Notification.show('ROW EDITED: INDEX: ' + event.getRowIndex() + ' EVENT: --> ' + event.getItem());
		
	})

Ok fixed the issue by adding this line of code -

nav.addEditorOpenListener( { event → } )

Now I’m getting the correct row Index instead of always getting -1. Seems the addEditorOpenListener method is necessary.