Skip to content

Page not scrolling to the new command prompt if goes beyond the original page. #7

@chlee0925

Description

@chlee0925

Hi! Thanks so much for the repo. I am really enjoying playing with the library.
I found that when I reached the bottom of the page, it was not automatically scrolling to the new command prompt.

How to reproduce:
Keep executing commands till you reach the bottom of the page.

I fixed it by inserting
window.scrollTo(0, document.body.scrollHeight); at the end of resetPrompt function.

If you can reproduce the bug and are happy about my fix, I would love to send you a pull request.
Thanks for reading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions