Repository navigation
First Check
Example CodeSee:
1) for typer docs (seems broken here): https://typer.tiangolo.com/
2) for fastapi docs (seems functional here): https://fastapi.tiangolo.com/DescriptionHello, The buttons
|
Replies: 3 comments 2 replies
|
Hi @phalberg! Good catch, and good news — this one's already been solved, just not here yet. FastAPI hit this exact bug and fixed it back in The fix was a one-line change in two places ( That also explains the "sometimes it happens, sometimes it doesn't" part you noticed - it's not actually random it depends on how far you'd scrolled and whether the jump-to-top was even noticeable from where you were on the page. And it explains the FastAPI vs. Typer difference too: they're separate repos each shipping their own copy of Since you already offered to open a PR - this should be a very safe one to make, since it's the exact same change already tested and merged on the FastAPI side. Just find Typer's copy of Let me know if you want a hand tracking down the file path in this repo! (And if this clears things up, I'd really appreciate it if you could mark this as the answer! ) |
|
@DhruvalAnandkar: Thanks for the review & pointers. Please do be careful to not make it seem like you're a maintainer approving the creation of a PR though ("Since you already offered to open a PR"), as this may come across as confusing. @phalberg: if you can replicate the fix and it's indeed parallel to a recent FastAPI PR, please feel free to PR it here as well and link the relevant FastAPI PR. Thanks! |


Fix in #1904