Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiselect - automatic selection breaks on page refresh #393

Closed
bunny-x-bunny opened this issue Nov 4, 2024 · 3 comments · Fixed by #398
Closed

Multiselect - automatic selection breaks on page refresh #393

bunny-x-bunny opened this issue Nov 4, 2024 · 3 comments · Fixed by #398
Assignees
Labels
bug Something isn't working
Milestone

Comments

@bunny-x-bunny
Copy link

Version: 2.7.6

Sample code:

<x-bladewind::select
  name="tags"
  multiple="true"
  selected_value="0"
  :data="[['label' => 'cat', 'value' => '0'], ['label' => 'dog', 'value' => '1']]"
/>

Description:
When refreshing page with F5, options provided via selected_value are ignored. Empty input is displayed. Further, it is impossible to select these values manually.
When refreshing page with disabled cache (Ctrl-Shift-F5), automatic selection works correctly, input contains all values from selected_value.
Perhaps this has something to do with html form autocomplete.
You can actually see this bug in action in docs themselves:
https://bladewindui.com/component/select#automatic

@mkocansey
Copy link
Owner

Thanks @bunny-x-bunny for raising this. Will fix asap.

@mkocansey mkocansey self-assigned this Nov 4, 2024
@mkocansey mkocansey added the bug Something isn't working label Nov 4, 2024
@mkocansey mkocansey added this to the v2.7.x milestone Nov 4, 2024
@mkocansey mkocansey moved this to Ready in BladewindUI Nov 4, 2024
@mkocansey
Copy link
Owner

@bunny-x-bunny I cant seem to reproduce this issue. I used the exact code you provided and also checked the docs pages. Everything works fine from this side. Safari. Chrome. Firefox. See attached video.

Screen.Recording.2024-11-06.at.12.27.29.mov

@bunny-x-bunny
Copy link
Author

Seems Firefox specific.

Tested on clean installs:
Firefox 130.0, Win 11 => have bug
Firefox 130.0, Ubuntu 22.04 => have bug
Chrome 130.0 => no bug

I will see if I can debug it better once I have time.

bunny-x-bunny pushed a commit to bunny-x-bunny/bladewind that referenced this issue Nov 6, 2024
@github-project-automation github-project-automation bot moved this from Ready to Done in BladewindUI Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants