Comments (2)
@laurengriffin hi, maybe your problem will be solved this: https://vuejs.org/v2/guide/reactivity.html#Async-Update-Queue
from vue-form-components.
@antonreshetov the problem is on this line
, ifthis.value
is empty, then you need to clear this.selected
. I fixed this code and it worked:
setInitValue () {
if (this.multiple) {
this.selected = this.value.map(item => {
return this.data.find(i => i.value === item)
})
} else if (this.value !== '') {
this.selected = this.data.find(item => item.value === this.value)
} else {
this.selected = {}
}
},
from vue-form-components.
Related Issues (20)
- Add Travis CI to build gh page
- can't use "name" attribute HOT 5
- Select component doesn't work properly HOT 4
- Form builder HOT 1
- Update docs for validation
- Vee-validate instead async-validation
- Add docs for form builder
- can not set default value
- Update for veevalidate
- Support customMessages in vvalidate
- Select search HOT 3
- Select component
- The Select component isn't keyboard accessible HOT 1
- Checkbox component
- Radio component
- Button component
- Form component
- Form validation
- Examples & Docs
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 vue-form-components.