Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Preselecting An Item Renders The List Empty #7

Open
mikebronner opened this issue May 28, 2019 · 2 comments
Open

Preselecting An Item Renders The List Empty #7

mikebronner opened this issue May 28, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mikebronner
Copy link
Owner

If you pre-select an item, like so:

                ->withMeta([
                    "belongsToId" => $this->user->id
                        ?: auth()->user()->id,
                ])

Then the list only renders the selected item, and not all possible selections.

@alexbowers
Copy link
Contributor

Unfortunately, that is a side effect of how the underlying element works, it could be overridden but I wanted to keep the code as close as possible to the core Nova component.

I would accept a PR that fixes this issue however.

@mikebronner
Copy link
Owner Author

@alexbowers Cool, I'll see if I can't put something together. Thanks

@mikebronner mikebronner self-assigned this Sep 1, 2020
@mikebronner mikebronner added enhancement New feature or request help wanted Extra attention is needed labels Sep 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants