[Vuejs]-How to remove the button auto focus from this message box/alert?

0👍

I also didn’t find any solution for this so i have tried the alternative for this below:

import swal from sweetalert

swal({ title: 'Warning',
                    text: 'some user message',
                    icon: 'warning',
                    dangerMode: true,
                    buttons: {
                        cancel: {
                            text: 'No',
                            value: null,
                            visible: true,
                            className: 'btn btn-primary',
                            closeModal: true
                        },
                        confirm: {
                            text: 'Yes',
                            value: true,
                            visible: true,
                            className: 'btn btn-secondary',
                            closeModal: true
                        }
                    }
                })

Leave a comment