You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, the user changing the input in selectA changes the values held in array1. Some of these values are the same, some different. Instead of the options for selectB being cleanly updated to bind to the new values held in array1, the list of selectB options retains the original values held in array1 and appends the values held in the new array1. I haven't determined the logic, but on multiple user inputs in the selectA to reassign values to array1, sometimes the duplicate values are appended to the end of the list of options for selectB and sometimes not.
One solution I explored was forcing the DOM to re-render, but after trying many things I was not able to get that to work.
Am I missing something? How can I get the select list to update cleanly?
The text was updated successfully, but these errors were encountered:
* test(lib): update Button spec
- Updates the unit tests (spec) of `Button` so that they can work with
`@vue/test-utils` V2.
- Replaces `wrapper.name()` with `wrapper.vm.$options.name` because
`wrapper.name` no longer exists in V2.
- Replaces the test of `wrapper.isVueInstance()` with that of
presence of `wrapper.vm` because `wrapper.isVueInstance` no longer
exists in V2.
- Replaces `listeners.click` in the options for `shallowMount` with
`props.onClick` because the interface of the options has changed
in V2.
- Replaces `wrapper.contains` with a combination of `wrapper.find`
and `exists` because `wrapper.contains` no longer exists in V2.
- Awaits `wrapper.setProps` to make sure new properties are applied
before testing subsequent assertions.
- Updates the snapshot. I did not see any problem with the new
snapshot.
issue ntohq#1
* chore(lib): remove comment on Button.spec
I have a select input with a list of options that gets updated based on another user input, like this:
template:
script:
As you can see, the user changing the input in selectA changes the values held in array1. Some of these values are the same, some different. Instead of the options for selectB being cleanly updated to bind to the new values held in array1, the list of selectB options retains the original values held in array1 and appends the values held in the new array1. I haven't determined the logic, but on multiple user inputs in the selectA to reassign values to array1, sometimes the duplicate values are appended to the end of the list of options for selectB and sometimes not.
One solution I explored was forcing the DOM to re-render, but after trying many things I was not able to get that to work.
Am I missing something? How can I get the select list to update cleanly?
The text was updated successfully, but these errors were encountered: