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

rendering issue. #10

Open
aammarr opened this issue Jan 10, 2022 · 1 comment
Open

rendering issue. #10

aammarr opened this issue Jan 10, 2022 · 1 comment

Comments

@aammarr
Copy link

aammarr commented Jan 10, 2022

I want it to authenticate on button click, but it always start on page render.

@MikeCheng1208
Copy link
Owner

hi~
I add new props option initConnect. you can take a look readme.

<script>
    import VueMetamask from 'vue-metamask';
    export default {
        components: {
            VueMetamask,
        },
        methods:{
            connect() {
                this.$refs.metamask.init();
            }
        }
    }
</script>

<template>
    <div id="demo">

        // close init connect
        <vue-metamask ref="metamask" :initConnect="false"></vue-metamask>
        
        // click button call Init
        <button @click="connect">connect</button>
    </div>
</template>

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