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
The data for the first country selected is now shown
What is expected?
The first time the country is selected to show data for that country right away
What is actually happening?
The first time I select a country, the selectedCountry ref variable is showing as an object with the property value set to the country selected.
When the code tries to access selectedCountry.value it returns null. Although when I debug in the DevTools, the selectedCountry is a valid object with the value property set to the country selected.
I expect the v-model on the select to automatically bind to the selectedCountry the first time I select a value.
The text was updated successfully, but these errors were encountered:
I believe the problem is that the change listener is being called before v-model updates selectedCountry.
posva
changed the title
ref object has value, but when ".value" is accessed gives null first timechange event happens before v-model updates the value
Aug 22, 2020
Version
3.0.0-rc.7
Reproduction link
https://codesandbox.io/s/suspense-vue3-4vgle
Steps to reproduce
What is expected?
The first time the country is selected to show data for that country right away
What is actually happening?
selectedCountry
ref variable is showing as an object with the propertyvalue
set to the country selected.selectedCountry.value
it returns null. Although when I debug in the DevTools, theselectedCountry
is a valid object with the value property set to the country selected.I expect the
v-model
on theselect
to automatically bind to theselectedCountry
the first time I select a value.The text was updated successfully, but these errors were encountered: