jrowen / rhandsontable

A htmlwidgets implementation of Handsontable.js
http://jrowen.github.io/rhandsontable/
Other
380 stars 147 forks source link

using colWidths argument produces duplicate columns #418

Open hamigua3000 opened 1 year ago

hamigua3000 commented 1 year ago

hello,

i noticed strange behavior when trying to use the colWidths argument within hot_cols. reprex below-- the first rhandsontable looks fine, but the second one has a duplicate mpg column. anyone else seen this issue?

install.packages("rhandsontable")
library(rhandsontable)

this example looks normal

rhandsontable(mtcars) %>%
   hot_cols(col(mtcars), manualColumnResize = TRUE, columnSorting = TRUE)

this example duplicates the first column (mpg)

rhandsontable(mtcars) %>%
   hot_cols(col(mtcars), manualColumnResize = TRUE, columnSorting = TRUE, colWidths = 100)
sanjmeh commented 1 year ago

@hamigua3000 @yihui is this package actively supported? I ask this question as I see many issues without any label or assignments or comments.

yihui commented 1 year ago

@sanjmeh I'm not an author or maintainer of this package (I only contributed a tiny bit several years ago). Please ask @jrowen. Thanks!