Dropdown produces 'no data' when adding record into an empty table

@jhoshito
Thank you so much for your solution! It helped me a great deal!

Issue is still happening, when there are rows returned form the data source query the dropdown options are loading fine for new row, and when the data source query returns no results the dropdown has no options.
I tried using dataArray instead of data, which shows the dropdown options like @jhoshito mentioned, but then the table shows an empty row although should be empty.

Any ways to resolve this issue?