@@ -108,7 +108,7 @@ const dv_listings = (function () {
108108 let result = '<div style="display: flex; align-items: baseline; gap: 0.5rem;">' ;
109109 result += `<input type="checkbox" data-for-row="${ row [ row_number_idx ] } " data-input-type="bulk-control" onchange = "dv_listings.on_change_table_checkbox(event)">` ;
110110 let options = choices ;
111- result += `<select onchange=\"Shiny.setInputValue('${ id } ', {row:${ row [ row_number_idx ] } , option:this.value}, {priority: 'event'});\">` ;
111+ result += `<select onchange=\"Shiny.setInputValue('${ id } ', {row:${ row [ row_number_idx ] } , option:this.value, bulk:null }, {priority: 'event'});\">` ;
112112 for ( let i = 0 ; i < options . length ; i += 1 ) {
113113 result += `<option value=${ i + 1 } ${ options [ i ] == data ? ' selected' : '' } >${ options [ i ] } </option>` ;
114114 }
@@ -150,7 +150,7 @@ const dv_listings = (function () {
150150
151151 if ( add_confirm_button ) {
152152 result += `
153- <button class = "btn btn-primary btn-xs" style=\"width:100%%\" onclick=\"Shiny.setInputValue('${ id } ', {row:${ row [ row_number_idx ] } , option:'${ options . indexOf ( row [ latest_review_idx ] ) + 1 } '}, {priority: 'event'})\" title="Agree with latest review">\u2714</button>
153+ <button class = "btn btn-primary btn-xs" style=\"width:100%%\" onclick=\"Shiny.setInputValue('${ id } ', {row:${ row [ row_number_idx ] } , option:'${ options . indexOf ( row [ latest_review_idx ] ) + 1 } ', bulk:null }, {priority: 'event'})\" title="Agree with latest review">\u2714</button>
154154 `
155155 }
156156 result += `</div></div>`
@@ -316,7 +316,7 @@ const dv_listings = (function () {
316316 const row_id = inputs [ i ] . getAttribute ( 'data-for-row' ) ;
317317 selected_row_ids . push ( row_id ) ;
318318 }
319- Shiny . setInputValue ( input_id , { row :selected_row_ids , option :choice_value } , { priority : 'event' } )
319+ Shiny . setInputValue ( input_id , { row :selected_row_ids , option :choice_value , bulk : null } , { priority : 'event' } )
320320 } ;
321321
322322 const apply_bulk_full = function ( container_id , input_id ) {
0 commit comments