Skip to content

flux::select outside livewire component #2628

@alexmontoanelli

Description

@alexmontoanelli

Flux version

2.14

Livewire version

4.3.0

Tailwind version

4.2.0

Browser and Operating System

chrome/macos

What is the problem?

Some of the flux components can be used outside a livewire component.

But flux::select wont respect a default value to keep the selected...like this edgecase

The B option should be the default option..

If for example a GET page with ?option=B

The option A is selected as default

Code snippets to replicate the problem

//pseudo code
<flux::select> <flux::select-option value=A >option A</flux::select-option> <flux::select-option value=B selected>option B</flux::select-option> </flux::select>

Screenshots/ screen recordings of the problem

not have

How do you expect it to work?

//pseudo code
<flux::select> <flux::select-option value=A >option A</flux::select-option> <flux::select-option value=B selected>option B</flux::select-option> </flux::select>

optoon B to be selected

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions