修复URL类型回退键被禁止问题

pull/409/head^2
RuoYi 3 years ago
parent 7cbdc0eb8e
commit 5f996472e1

@ -511,7 +511,7 @@ window.onload = function() {
return _stopIt(event); return _stopIt(event);
} }
var type_e = elem.type.toUpperCase(); var type_e = elem.type.toUpperCase();
if (name == 'INPUT' && (type_e != 'TEXT' && type_e != 'TEXTAREA' && type_e != 'PASSWORD' && type_e != 'FILE' && type_e != 'SEARCH' && type_e != 'NUMBER' && type_e != 'EMAIL')) { if (name == 'INPUT' && (type_e != 'TEXT' && type_e != 'TEXTAREA' && type_e != 'PASSWORD' && type_e != 'FILE' && type_e != 'SEARCH' && type_e != 'NUMBER' && type_e != 'EMAIL' && type_e != 'URL')) {
return _stopIt(event); return _stopIt(event);
} }
if (name == 'INPUT' && (elem.readOnly == true || elem.disabled == true)) { if (name == 'INPUT' && (elem.readOnly == true || elem.disabled == true)) {

Loading…
Cancel
Save