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

[Feature Request] SoftInput init value #8

Open
goldstark opened this issue Aug 14, 2022 · 2 comments
Open

[Feature Request] SoftInput init value #8

goldstark opened this issue Aug 14, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@goldstark
Copy link

What is your enhancement?

If i bind a variable with SoftInput i get the update value. However to init the value , the initial value is not set
to initiate value i need to do document.querySelector("#name").value=this.name

could it be automatic?

<SoftInput id='name" v-model="name">

export default {
name: "UserEdit",
components: { SoftAlert,SoftInput },
data() {
return {
name: "John",
}}

@sajadevo sajadevo added the enhancement New feature or request label Aug 15, 2022
@sajadevo
Copy link
Collaborator

Hi @goldstark,

Thanks for using our product, I've listed this as a feature for the next update of the product.

Regards,
Sajad

@jawobar
Copy link

jawobar commented Nov 21, 2022

Hi,

Not sure if this about the same issue, but I had problems with SoftInput had to follow this exercise: https://vuejs.org/guide/components/events.html#usage-with-v-model

Now everything works fine.
Cheers!

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

No branches or pull requests

3 participants