painterro icon indicating copy to clipboard operation
painterro copied to clipboard

Small UX/UI Behavior (console.log in main.js)

Open hafiidz opened this issue 3 years ago • 0 comments

Describe the bug

There is a console.log in two lines, distracting for development flow when it doesn't seems to be necessary. I can raise a PR but not sure if this is intended? Maybe I missed setting up the logging behavior during initialization? Couldn't find it in configuration though.

Also, sidenote, it seems to be logging across different Vue pages/layout/view. Not sure if there is a better way to constraints to specific location only.

js/main.js

Line 875  console.log('handing copy')

Line 1023  console.log('event.target !== document.body', event.target, document.body);

Painterro version E.g. v1.0.2

To Reproduce Steps to reproduce the behavior:

  1. Be in development mode while using this library
  2. Click anywhere on body
  3. Console.log will appear (picture as below)

Expected behavior No console.log event (especially in other pages/layout/view).

Screenshots

image

Browser

  • e.g. Google Chrome on Windows

hafiidz avatar Sep 26 '22 01:09 hafiidz