vue-pdf-app icon indicating copy to clipboard operation
vue-pdf-app copied to clipboard

Page Always Reload When Clicked

Open Rifaldikn opened this issue 3 years ago • 1 comments

I have problem with vue-pdf-app, it's always reload/refresh the page when i clicked zoom in/zoom out also it will refresh if i click other toolbar button

Here i meet same issue with this code https://codesandbox.io/s/bold-darkness-tfbpp?file=/src/components/ModalPDFReader.vue:2993-3004

Rifaldikn avatar Jan 09 '22 06:01 Rifaldikn

A temporary workaround is to stop the button click event propagation. Suppose you installed vue-pdf-app in a div called "vuePdfApp", you can add the following JavaScript code to stop event propagation:

$(document).on('click', '#vuePdfApp button', evt => {
    evt.stopPropagation();
    return false;
});

eye8 avatar Feb 09 '22 08:02 eye8