Skip to content

keep_options_on_select option not working #126

@RisPNG

Description

@RisPNG

LiveSelect v1.7.0 and LiveView v1.0.17
have you tried LiveSelect's and LiveView's latest versions? Please try them and see if the bug still occur
Yes.

Describe the bug
I made the keep_options_on_select option to true with keep_options_on_select={true} on single mode but after I selected an option from my dropdown and open the dropdown again, the selected options disappears again from the text field unless the dropdown is closed.

Expected behavior
I am expecting the option to make the option to stay there on single mode after an option is selected regardless if the dropdown is active or not.

Actual behavior
The text field does not keep its active option if the dropdown is active, instead the text field becomes empty when the dropdown is active.

Screenshots
Image

Image

Even on your showcase, https://live-select.fly.dev , the behaviour is not applied.

Image Image

Browsers
I am currently on Vivaldi (Chromium) and I also tested it on Firefox, which have the same result.

Issue Repo
N/A.

Additional context
N/A.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions