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

Any other component in v-dialogs is not working well #22

Closed
Bornpagna opened this issue Oct 27, 2019 · 5 comments
Closed

Any other component in v-dialogs is not working well #22

Bornpagna opened this issue Oct 27, 2019 · 5 comments

Comments

@Bornpagna
Copy link

I'm user any other component is not working well as my datePicker it not working well

Forpost component:

<template>
 <div class="">
 <date-picker 
   class="dateTimePiker"
   :lang="langs" 
   format="DD/MM/YYYY" 
   v-model="model.close_date" 
   :placeholder="close_date" 
   name="close_date"
 >
 </date-picker>                   
</div>
</template>
<script>
import DatePicker from 'vue2-datepicker';
export default{
 props:[],
 components:{
   'date-picker':DatePicker,
 },
 mounted(){
 },
 computed: {
 },
 data(){
     return{
       model:{
         close_date:''
       }
     }
 },
 methods:{
 }
}
</script>

Call Dialog Component:

import jobPostForm from './formPostJob.vue';
import vDialog from 'v-dialogs';
Vue.use(vDialog);
export default{
openEditPost(data){
	            this.$dlg.modal(jobPostForm, {
	            	title:"Edit Post",
	                width: 550,
	                height: 450,
	                //send params to inner component
	                params: {
	                },
	                //modal dialog close callback
	                //data: inner component call 'this.$emit.('close', data)'
	                //to close modal and return data
	                // callback: data=>{
	                //     //alert selected result
	                //     this.$dlg.alert(`You selected ${data.companyName} company`);
	                // }
	            });
		    },
}

Error:
2019-10-27_13-21-04

@TerryZ
Copy link
Owner

TerryZ commented Oct 27, 2019

What version are you using of v-dialogs

@Bornpagna
Copy link
Author

I'm using v-dialog version : 2.1.2

@TerryZ
Copy link
Owner

TerryZ commented Oct 27, 2019

Please upgrade to v2.1.3 and try again.

@Bornpagna
Copy link
Author

Ok i will try

@Bornpagna
Copy link
Author

Thank you! it working now

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

No branches or pull requests

2 participants