creativetimofficial / ct-vue-soft-ui-dashboard-pro

Vue Soft UI Dashboard PRO - Premium Dashboard using VueJS 3 and Bootstrap 5
https://demos.creative-tim.com/vue-soft-ui-dashboard-pro/
2 stars 2 forks source link

[Feature Request] SoftInput init value #8

Open goldstark opened 2 years ago

goldstark commented 2 years ago

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 commented 2 years ago

Hi @goldstark,

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

Regards, Sajad

jawobar commented 2 years ago

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!