Violation Click issue

Hi Team,

In Page we have click function issue for anchor tag

[Violation] Forced reflow while executing JavaScript took 47ms
[Violation] ‘click’ handler took 1689ms framework7.bundle.js:1061

Что находится в этой строчке?

this is a function in framework7 bundle
function handleLiveEvent(e) {
var target = e.target;
if (!target) { return; }
var eventData = e.target.dom7EventData || [];
if (eventData.indexOf(e) < 0) {
eventData.unshift(e);
}
if ($(target).is(targetSelector)) { listener.apply(target, eventData); }
else {
var parents = $(target).parents(); // eslint-disable-line
for (var k = 0; k < parents.length; k += 1) {
if ($(parents[k]).is(targetSelector)) { listener.apply(parents[k], eventData); }
}
}
}

Покажите минимальный пример на jsfiddle

Error message is pretty self explaining, you are doing some heavy or long synch operation within that click handler

Iam just trying to a copy clipboard function using cordova-plugin-clipboard

cordova.plugins.clipboard.copy(textmessage);

not working.do we have option in the framework7

image

You don’t need cordova plugin for that https://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript

Копирование средствами JS заработало относительно недавно нормально в браузерах, до этого использовался Flash.

Кстати, еще один хитрый способ копирования: https://stackoverflow.com/questions/17527870/how-does-trello-access-the-users-clipboard/17528590#17528590 который работает и в “старых” браузерах.

Does this method apply to Android applications?

We tried to use the clipboard NPM- cordova-clipboard - npm

And we are getting a response as {"isTrusted":true} .

Please Help.

Thank you.
Ashin