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 2d99fb7 commit c3c2c91Copy full SHA for c3c2c91
src/tpl/defaultTheme/frontend/index.js
@@ -1019,13 +1019,10 @@
1019
1020
document.documentElement.addEventListener('paste', function (e) {
1021
var tagName = e.target.tagName;
1022
- if (tagName === 'INPUT') {
1023
- if (nonTextInputTypes.indexOf(e.target.type) < 0) {
1024
- return;
1025
- }
1026
1027
if (tagName === 'TEXTAREA') {
1028
return;
+ } else if (tagName === 'INPUT' && nonTextInputTypes.indexOf(e.target.type) < 0) {
+ return;
1029
}
1030
var data = e.clipboardData;
1031
0 commit comments