mirror of
https://github.com/covidpass-org/covidpass.git
synced 2025-02-19 13:10:54 +01:00
Scroll down after successful pass creation
This commit is contained in:
parent
4f30b9b326
commit
931b0806f9
@ -191,6 +191,9 @@ function Form(): JSX.Element {
|
||||
const passBlob = new Blob([pass], {type: "application/vnd.apple.pkpass"});
|
||||
saveAs(passBlob, 'covid.pkpass');
|
||||
setLoading(false);
|
||||
|
||||
var scrollingElement = (document.scrollingElement || document.body);
|
||||
scrollingElement.scrollTop = scrollingElement.scrollHeight;
|
||||
} catch (e) {
|
||||
setErrorMessage(e.message);
|
||||
setLoading(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user