mirror of
https://github.com/traccar/traccar-web.git
synced 2025-01-09 04:37:33 +08:00
reset password: pressing enter does not submit form
it reloads the page because of missing submit button
This commit is contained in:
parent
42db1a41cb
commit
238bb91194
@ -97,6 +97,7 @@ const ResetPasswordPage = () => {
|
||||
<Button
|
||||
variant="contained"
|
||||
color="secondary"
|
||||
type="submit"
|
||||
onClick={handleSubmit}
|
||||
disabled={!/(.+)@(.+)\.(.{2,})/.test(email) && !password}
|
||||
fullWidth
|
||||
|
Loading…
Reference in New Issue
Block a user