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"});
|
const passBlob = new Blob([pass], {type: "application/vnd.apple.pkpass"});
|
||||||
saveAs(passBlob, 'covid.pkpass');
|
saveAs(passBlob, 'covid.pkpass');
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
|
||||||
|
var scrollingElement = (document.scrollingElement || document.body);
|
||||||
|
scrollingElement.scrollTop = scrollingElement.scrollHeight;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
setErrorMessage(e.message);
|
setErrorMessage(e.message);
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
|
Loading…
Reference in New Issue