editData icon indicating copy to clipboard operation
editData copied to clipboard

Bug in Shiny with "Delete All" button and issue starting with empty data frames

Open richarddirocco opened this issue 3 years ago • 0 comments

Hello,

I think these two issues are related:

If I run editData/inst/example/app.r and click the Delete All button then click Add, the new entry does not appear.

In my application, I'm trying to use the package to generate a table of user entered data. When I try to start with an empty data frame such as: as.data.frame(matrix(nrow = 0, ncol = 10)), I get an error: Must be 2-dimensional (e.g. data frame or matrix).

So seems like if you don't have at least 1 row, either by passing in an empty data frame or by clicking "Delete All", the data table breaks.

richarddirocco avatar Jun 08 '22 15:06 richarddirocco