I have a grid using inline editing, and I have "edit" buttons on each row to initiate editing. If one row is already editing when the user asks to edit another row, I would like to give the user the option not to edit the new row.
I tried both our standard confirmation modal (which is asynchronous and uses Promises) and window.confirm(), and in each case the new row is moved into edit mode before I have a chance to cancel the edit.
Is there some way to do this?