mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
ensure disabled form inputs are reset after browser navigation
This commit is contained in:
parent
6a045ce88e
commit
6de4ad3ac4
1 changed files with 4 additions and 0 deletions
|
@ -104,3 +104,7 @@ delegate(document, 'submit', {
|
||||||
delegate(document, 'reset', {
|
delegate(document, 'reset', {
|
||||||
form: formReset
|
form: formReset
|
||||||
});
|
});
|
||||||
|
|
||||||
|
window.addEventListener('pageshow', () => {
|
||||||
|
[].forEach.call(document.forms, form => formReset(null, form));
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in a new issue