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)
- tags not adding using version 2.4.2 while on verison 2.2.1 works
- Click on scrollbar closes multiselect when appendToBody or appendTo= is being used HOT 5
- [Feature request] Add possible value 'blur' or 'focusout' for the prop addOptionOn.
- DeBounce on search HOT 2
- trackBy no longer accept array of strings
- Selecting an option from the dropdown triggers parent elements click event handlers HOT 1
- Add option to blur after selection
- refreshOptions doesn't seem to be working HOT 1
- No types on scoped slotes HOT 1
- Slot is "grouplabel", but type is "groupLabel" HOT 1
- "noresults" slot not working HOT 3
- Cannot read properties of null (reading 'querySelectorAll') HOT 2
- Blur when option have a lot in mac os
- Different clearIcon svg fill color for dark and light mode HOT 2
- focus() issue HOT 1
- Missing methods in Multiselect type
- Add focus/blur event emits HOT 1
- Clicking the clear icon
- Typescript Build Error HOT 1
- can't add option with space in mobile
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.