Hi. I have defined two lists in the same controller, both are displayed on the same page (index.php).
Each list has its own toolbar with a default delete button (onDelete).
<button
class="btn btn-default oc-icon-trash-o"
data-request="onDelete"
data-request-confirm="<?= e(trans('backend::lang.list.delete_selected_confirm')) ?>"
data-list-checked-trigger
data-list-checked-request
data-stripe-load-indicator>
<?= e(trans('backend::lang.list.delete_selected')) ?>
</button>
When I select records from the second list and click “Delete selected”, the records are deleted from the first list instead of the second. Is this normal behavior? Shouldn’t the onDelete function refer to the modelClass defined in the configuration files of each list?
What should the custom function look like to work separately for both lists?