Hello,


I'm currently facing an issue in trying to prevent the paste (onpaste) event from triggering inside some input fields. Note that I'm also using a decimal mask component for these fields. I've looked in lots of places for a solution, but it seems I cannot achieve what I want. Below is the JS code I'm currently trying to use in OnReady action for the webblock where these fields are present, but with no success


amountFrom = document.getElementById($parameters.AmountFromId);
amountFrom.onpaste = function(e) {
    e.preventDefault();
    return false;
};

amountTo = document.getElementById($parameters.AmountToId);
amountTo.onpaste = function(e) {
    e.preventDefault();
    return false;
};


Please let me know what is the proper way of preventing similar events in Reactive applications.


Regards,

Bogdan