Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default value not displayed when using async options #80

Closed
seanwuapps opened this issue Jun 3, 2021 · 2 comments
Closed

Default value not displayed when using async options #80

seanwuapps opened this issue Jun 3, 2021 · 2 comments
Labels

Comments

@seanwuapps
Copy link

Version

  • Vue version: 3

Description

When used in async mode (async function as options), the default v-model is not displayed but available as value.

Demo

https://jsfiddle.net/szm21chq/
See example #5 (only diff from the original JSFiddle template is the added value)

@stale
Copy link

stale bot commented Jun 18, 2021

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs.

@stale stale bot added the stale label Jun 18, 2021
@adamberecz
Copy link
Collaborator

That's because 'Java' as an option does not exist. If you need default value without using resolveOnLoad you can use object: trueand provide the default value as an object: { value: 'Java', label: 'Java' }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants