wireui / wireui

TallStack UI components
https://v1.wireui.dev
MIT License
1.37k stars 166 forks source link

x-select is duplicating options when click on browser back button with full page components #750

Open zooni7054 opened 7 months ago

zooni7054 commented 7 months ago

Describe the bug I am using livewire 3 full page components. I have x-select in a modal form. I navigate to the other page by clicking the menu. When I click brower back button, x-select show the duplicate values (blank). I can also see the following error in console when click browser back button.

Alpine Expression Error: index is not defined

Expression: "index"

To Reproduce Steps to reproduce the behavior:

  1. Open a page which has the x-select and option.
  2. Move to any other page
  3. click on browser back button
  4. you would see the error.

Expected behavior x-select should have the options given in the array, it should not add or duplicate options.

Screenshots or Videos

https://github.com/wireui/wireui/assets/14364018/b6b53997-db01-4316-98c2-b264b199c634

Dependencies

zooni7054 commented 7 months ago

Any update on this?

vlados commented 4 months ago

I also have the same problem