Skip to content

Commit

Permalink
fix onselect not work in put_datatable()
Browse files Browse the repository at this point in the history
  • Loading branch information
wang0618 committed Apr 22, 2023
1 parent 2305df0 commit d9712f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webiojs/src/models/datatable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export let Datatable = {
columnDefs: options.columnDefs,

//https://www.ag-grid.com/javascript-data-grid/row-selection/
rowSelection: (spec.actions.length > 0) && (spec.multiple_select ? 'multiple' : 'single'),
rowSelection: (spec.actions.length > 0 || spec.on_select) && (spec.multiple_select ? 'multiple' : 'single'),

defaultColDef: {
...gridDefaultColDef,
Expand Down

0 comments on commit d9712f1

Please sign in to comment.