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 836fa8c commit 55a64aeCopy full SHA for 55a64ae
src/tpl/defaultTheme/frontend/index.js
@@ -1048,13 +1048,10 @@
1048
1049
document.documentElement.addEventListener('paste', function (e) {
1050
var tagName = e.target.tagName;
1051
- if (tagName === 'INPUT') {
1052
- if (nonTextInputTypes.indexOf(e.target.type) < 0) {
1053
- return;
1054
- }
1055
1056
if (tagName === 'TEXTAREA') {
1057
return;
+ } else if (tagName === 'INPUT' && nonTextInputTypes.indexOf(e.target.type) < 0) {
+ return;
1058
}
1059
var data = e.clipboardData;
1060
if (!data) {
0 commit comments