rhandsontable icon indicating copy to clipboard operation
rhandsontable copied to clipboard

set 'hot_col' 'source' argument as a list

Open stla opened this issue 2 years ago • 3 comments

Fix #389

Just changing

if (!is.null(source)) cols[[i]]$source = source

to

if (!is.null(source)) cols[[i]]$source = as.list(source)

at line 448.

stla avatar Aug 03 '21 12:08 stla

Hey there, just wondering when this patch will be merged? I'm facing the same problem as #389. Tried tweaking various {rhandsontable} parameters, finally found that open issue. I'll need to see whether to install a new version if the fix is to be shipped soon or to implement my own solution. Much appreciated!

Avatoo avatar Sep 01 '22 08:09 Avatoo

Hello @Avatoo

It looks like this package is not actively maintained. Use as.list and this will work even after the fix will be done.

Cheers.

stla avatar Sep 03 '22 13:09 stla

@stla many thanks for your reply. For the time being I got around it by the below as it only needs to be wrapped in list when length of options is more than 1.

# ops defines options on dropdown
if (length(ops)==1) ops<- list(ops)

Avatoo avatar Sep 13 '22 10:09 Avatoo