-
Notifications
You must be signed in to change notification settings - Fork 152
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
Label text doesn't change if options updated #39
Comments
@adamberecz The fix is now causing a new issue (Maximum recursive updates exceeded) See: (best to open in Chrome)
|
In fact the infinite recursion occures because you're reading Now I added a fix that prevents that. |
Another issue (probably related to the changes introduced here) is when trying to remove an option which has already been selected. Using setTimeout in v1.3.4 fixes the issue (but was not necessary in v1.3.2). See: (best to open in Chrome):
May be related to #38 |
Often |
@osi-oswald Are you still crashing? I'm seeing crashes fairly often (whole page becomes unresponsive and fans start spinning like crazy) on It happens when I use the autocomplete search and then press enter (or click with the mouse) on one of the results which does nothing else but execute this code:
It works some of the times and other times it crashes but it's fairly easy to reproduce and not that rare |
It's happening constantly now but only on some pages.. no idea what's going on.. no errors in console at all.. page becomes unresponsive, fans spinning, can't reload, can't , can't ctrl-w/cmd-w, all I can do is X the page. I tried wrapping my |
Do you have any code to reproduce? |
not really man. Best I can do is share my component maybe the answer lies in there. I've moved back to shentao/vue-multiselect for now.
|
Thanks, it helps! I was able to reproduce the bug, which is... very strange. Watcher keeps kicking in infinitely at useOptions.js@424 even though the value does not change. I need to do further investigation, though it seems like a Vue internal bug. A quick fix might be for anyone who gets here is to change |
Btw just some small unrelated sidenote: You are a beast @adamberecz!! 🙌🤩🤗 |
@vesper8 now things should be fine with |
Version
Description
We have typical use case: country select, translated to several locales. Options is array of objects:
If we have selected value
au
for example in English locale, our label showsAustralia
. But when change locale for example to Russian (ru
), and update options, label will remain the sameI wrote test-case for this to clear our problem:
Demo
https://jsfiddle.net/cubk7z50/13/
The text was updated successfully, but these errors were encountered: