1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-16 11:44:42 +02:00

Fix issue processwire/processwire-issues#1303 PageFrontEdit limit to single-line input on 1-line text fields

This commit is contained in:
Ryan Cramer
2021-08-13 13:58:54 -04:00
parent f1150127ea
commit b606349c08
2 changed files with 3 additions and 2 deletions

View File

@@ -112,11 +112,12 @@ function PageFrontEditInit($) {
return false;
});
if(t.hasClass('pw-edit-InputfieldText')) {
if(t.is('span')) { // single-line text
// via @canrau
copy.keydown(function(e) {
if(e.keyCode == 13){
e.preventDefault();
$(this).blur();
}
});
}

File diff suppressed because one or more lines are too long