Open jhen1115 opened 1 year ago
Hi,
There is a dropdown validator issue when more than 1 character in dropdown. For example,
rhandsontable(data.frame(char = rep("Ab", 2))) %>% hot_col( "char", type = "dropdown", source = "Ab" )
The background of cells will be changed to red after the dropdown is opened.
However, if the "Ab" is changed to "A", then the background of cells will not be changed after the dropdown is opened.
Now, the below validator argument is added to resolve the issue
validator = paste0( "function(value, callback) {", " callback(value === 'Ab' ? true : false);", "}" )
..., however, does anyone have better resolution for solving this issue?
Thank you
Hi,
There is a dropdown validator issue when more than 1 character in dropdown. For example,
The background of cells will be changed to red after the dropdown is opened.![image](https://user-images.githubusercontent.com/85337074/216531824-ced20b04-d284-4ac0-95fa-5ca5a43ee206.png)
However, if the "Ab" is changed to "A", then the background of cells will not be changed after the dropdown is opened.
Now, the below validator argument is added to resolve the issue
..., however, does anyone have better resolution for solving this issue?
Thank you