SyntaxFix
Write A Post
Hire A Developer
Questions
I use this vanilla JS solution:
const element = document.getElementById('textfield') element.addEventListener('paste', e => e.preventDefault())