-
-
Notifications
You must be signed in to change notification settings - Fork 739
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
Vuesax dialogs are invoking accept alert automatically #251
Comments
For this is the method @vs-accept="myFunction"
...
methods:{
myFunction () {
console.log("accept dialog")
}
} |
Here I am not using
|
@yathindra123 Add all the code to understand you better |
I'd like to request reopening this. I'm facing the same issue when using the example in the documentation. <div class="save-prompt">
<vs-button @click="openNewPartPrompt()" size="large" icon="new_releases" color="primary" type="relief" text-color="rgb(10, 20, 30)">NEW PART</vs-button>
</div> methods: {
openNewPartPrompt(){
this.$vs.dialog({
type:'confirm',
color: 'warning',
title: 'New Part',
text: 'Are you sure you want to start a new part sequence?',
accept: this.stateNewPart()
})
}, this.stateNewPart() is invoked immediately when the dialog opens, instead of waiting for the user to accept. |
Same bug for me, on top of that I have errors like on this issue: #291 |
Vue when you execute a method in this way mymethod () executes when instantiated to solve add a new property (parameters) that are the parameters that are going to return in the two functions accept and cancel
It is important that the function to be executed is only set without parentheses
|
@luisDanielRoviraContreras : Thanks bro , I had the same problem and your solution was awesome |
I used vuesax dialogs with vuejs event bus. When "confDelete" event emitted as the below image, the acceptAlert method is automatically called , which has put in the accept key. But acceptAlert method should be invoked only when the user hit on accept button.
The text was updated successfully, but these errors were encountered: