Comments (8)
But can you actually see Multiselect's modelValue
prop being set? I don't think so because attribute inheritance works with non-prop attributes and :modelValue
is a prop. So adding :modelValue="modelValue"
to multiselect should solve the problem.
Btw generally if you have resolveOnLoad
set to true
and the resulting async option list contains an item which value
equals to the initially set modelValue
it will be selected once the async process finishes.
from multiselect.
I don't see v-model
or :modelValue
assigned here.
from multiselect.
All the attributes passed to the <restaurant-autocomplete v-model="filters.restaurantId" />
get passed to the root element of the child component automatically.
from multiselect.
I don't see
v-model
or:modelValue
assigned here.
https://v3.vuejs.org/guide/component-attrs.html#attribute-inheritance
from multiselect.
But can you actually see Multiselect's
modelValue
prop being set? I don't think so because attribute inheritance works with non-prop attributes and:modelValue
is a prop. So adding:modelValue="modelValue"
to multiselect should solve the problem.
I tried that. Still doesn't work.
from multiselect.
Btw generally if you have
resolveOnLoad
set totrue
and the resulting async option list contains an item whichvalue
equals to the initially setmodelValue
it will be selected once the async process finishes.
The options list get's indeed resolved and I get a list with only one item (my item), it's just not selected.
Btw, myabe this will help you to better understand my usecase. I am getting "this.filters.restaurantId" from this.$route.query, on mounted().
from multiselect.
The error was mine on the binding from the query params. I apologise for wasting your time and thank you for your work.
from multiselect.
I used :model-value="default_value"
that's worked for me in Vue 3
But can you actually see Multiselect's
modelValue
prop being set? I don't think so because attribute inheritance works with non-prop attributes and:modelValue
is a prop. So adding:modelValue="modelValue"
to multiselect should solve the problem.Btw generally if you have
resolveOnLoad
set totrue
and the resulting async option list contains an item whichvalue
equals to the initially setmodelValue
it will be selected once the async process finishes.
from multiselect.
Related Issues (20)
- Add focus/blur event emits HOT 1
- Clicking the clear icon HOT 1
- Typescript Build Error HOT 1
- can't add option with space in mobile
- Opening disabled input
- Select does not scroll to selected item when the list is large HOT 2
- `getOption` does not work when `value` is an object. HOT 1
- Empty values in createOption with trimmed value HOT 1
- Prop `closeOnScroll` doesn't work with `appendToBody`
- Expose loading state on async options HOT 1
- appendToBody on async options: dropdown position is incorrect for the first time appearance HOT 1
- [Feature Request] Choose positioning for appendToBody
- Expose default search/filter function
- issue with :append-to-body="true" in a modal. HOT 2
- In mode "Tags" with an array of objects, an error message should be shown when valueProp can not be found HOT 2
- Tags mode displaying tag count limit
- Potential Regression: emits null right after emitting the selected value in 2.6.8
- Project not run with version 2.6.8 HOT 1
- With groupHideEmpty the group label is still visible HOT 2
- Tags are not accessible with keyboard (WCAG)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multiselect.