MedicOneSystems / MedicOneSystems/livewire-datatables
Incorrect behaviour of activeSelectFilter ?
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Thanks for this development, it's wonderful.
I have a problem with activeSelectFilter.
If I use it in class before methods with à value, it's ok.
But if I use it in methods, the behavior is different.
it look like that if I use it in a method, it's not possible to unselect.
In laravel, I use "auth()->user()->attribute" and it's not possible out methods.
Someone can help me with an example ?
That I would like to do : filter my table with a value providing by "auth()->user()->attr" like a select, but that I can unselect to get the entire of my data.
Thanks very much for your help !
Laravel 8.xx
Php 7.4
livewire 2.4
livewire-datatable 0.7.0
S.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing activeSelectFilter when it is declared before methods versus inside a method, using the Laravel auth()->user()->attribute value described in the issue. Verify whether selecting and then unselecting restores the full table, with the reported Laravel 8, PHP 7.4, Livewire 2.4, and livewire-datatable 0.7.0 versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- authentication, backend, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100