harveyl888 / shinyExtra

Some additional functions for shiny apps
3 stars 0 forks source link

for SXSortable, val_1/2 won't initialize in shiny unless triggered by user #7

Closed happyshows closed 6 years ago

happyshows commented 7 years ago

Hi,

I found out this issue because I was expecting to read the default value in shiny, but it turns out to be NULL, unless user dragged the item to another frame.

harveyl888 commented 7 years ago

Thanks for bringing this up. Could you attach some reproducible code and I'll see if I can work on it this weekend.

harveyl888 commented 7 years ago

Is the sortable function built within a renderUI call? If so this is a known issue and can be solved using the workaround suggested in issue #4 and example02. I'm looking into a more elegant solution.

happyshows commented 6 years ago

This workaround does the job.