Forum Replies Created

Viewing 1 replies (of 1 total)
  • Estava com o mesmo problema aqui e a solu??o apresentada pelo @luanrox n?o funcionou.

    Percebi aqui que foi adicionada uma linha no código, e excluindo ela, o bot?o voltou a funcionar.

    Trata-se da linha 98 (plugin na v7.3.1):

    95                <button
    96                    onclick="copy_qr_code()"
    97                    class="mp-details-pix-button"
    98                    onclick="true"
    99                >
    100                   <?= esc_html($text_button); ?>
                    </button>
    
                    <script>
                        function copy_qr_code() {
                            const copyText = document.getElementById("mp-qr-code");
                            copyText.select();
                            copyText.setSelectionRange(0, 99999);
                            document.execCommand("copy");
                        }
                    </script>
Viewing 1 replies (of 1 total)