Actions
Bug #87793
closedDefault submit in locked install tool reloads the form
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2019-02-26
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
In Firefox (at least on Ubuntu) when entering a password in the locked install tool and pressing enter the password is not sent to the server, instead the form is just reloaded. This is due to a check on keyCode in the javascript:
$(document).on('keydown', '#t3-install-form-password', function(e) { if (e.keyCode === 13) { e.preventDefault(); $('.t3js-login-login').click(); }
https://github.com/TYPO3/TYPO3.CMS/blob/f9ea59ca7275b4dbfa8b118fc3e5e44c65b90547/typo3/sysext/install/Resources/Public/JavaScript/Modules/Router.js#L44-L49
Instead of keydown
keypress
should be used and additionally e.which
should be checked.
var code = e.keyCode || e.which; if(code == 13) { //Enter keycode //Do something }
Actions