Here is an example with two tables: one has 1 initial row, and one has 2 initial rows.
The behavior I want is for the “+” button to add a row below or after the one clicked. To do this, my code is
hot.alter("insert_row", endRow+1). This works for any row other than the first row. And the behavior is the same whether there is only a single row or more.
The “delete” button also does not work on the first row. I’m guessing the issue is the same.