We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcc8ba9 commit 3aed204Copy full SHA for 3aed204
src/tpl/defaultTheme/frontend/index.js
@@ -1034,13 +1034,10 @@
1034
1035
document.documentElement.addEventListener('paste', function (e) {
1036
var tagName = e.target.tagName;
1037
- if (tagName === 'INPUT') {
1038
- if (nonTextInputTypes.indexOf(e.target.type) < 0) {
1039
- return;
1040
- }
1041
1042
if (tagName === 'TEXTAREA') {
1043
return;
+ } else if (tagName === 'INPUT' && nonTextInputTypes.indexOf(e.target.type) < 0) {
+ return;
1044
}
1045
var data = e.clipboardData;
1046
if (!data) {
0 commit comments