inertiajs-tables-laravel-query-builder icon indicating copy to clipboard operation
inertiajs-tables-laravel-query-builder copied to clipboard

Reset button not working when used in slots

Open jdsantos opened this issue 3 years ago • 3 comments

Hi there!

First of all, thank you for your contribution to the community with this package. I'm using this package in a small project, and at some point i needed to customize the TableReset slot which i did with the following:

<Table>
<template #tableReset="resetProps">
</template>
</Table>

The resetProps (unspreaded) has the onClick property well defined, and canBeReset property always with the value of "canBeReset". I do think it is always like this because of a small binding error here: https://github.com/jdsantos/inertiajs-tables-laravel-query-builder/blob/main/js/Components/Table.vue#L52

I will make a PR and if you think this solves the problem correctly please merge it.

Thanks!

jdsantos avatar Oct 21 '22 08:10 jdsantos

here is the PR #98

jdsantos avatar Oct 21 '22 08:10 jdsantos

Any updates on this?

jdsantos avatar Nov 07 '22 17:11 jdsantos

Anyone?

jdsantos avatar Dec 12 '22 14:12 jdsantos