rstudio / sortable

R htmlwidget for Sortable.js
https://rstudio.github.io/sortable/
Other
131 stars 29 forks source link

shiny text input as bucket list title #105

Open tai-mi opened 1 year ago

tai-mi commented 1 year ago

Hello! I'm rebuilding a shiny app I made last fall which used sortable bucket lists where I passed a shiny::textInput() as the title for each of the bucket lists allowing users to change the title of each bucket list. I guess this is not the intended usage since it now errors, but it worked as of last fall, and I was wondering if there was a way to work around this?

The exact code is messy but is effectively: bucket_list(header='header', group_name='group', orientation='horizontal', add_rank_list(text=shiny::textInput('group_lab1', 'Variable 1 Name', 'Variable 1'), input_id='id', labels=c('a', 'b', 'c')))

The error message is as below: image

dbykova commented 8 months ago

I have the same issue. It’s reproduced in R >= 4.3. It seems that it's caused by stricter comparison with && and || for non-scalars introduced in R 4.3.