Closed kgryte closed 2 years ago
Hmm...seeing that this only seems to affect the latest (non-public) version of the API docs. 🤦♂️
Live update: I am now failing to reproduce.
Okay. Was able to reproduce. This is an intermittent bug. Sometimes if I delete what is in the filter input box very quickly, the side menu does not update its collapse/expand state. Not sure what is happening here, as it does not always fail to reset.
This seems to be a problem with how we are debouncing an internal callback. I can reproduce by entering a filter string and then quickly hitting backspace until the filter is empty.
This should be addressed in the latest deployed docs. I updated the logic for restoring collapse state.
Checklist
Description
Encountered an error when clearing the filter in the side menu. When filtering, the menu automatically expands to highlight those packages which match the filter. However, on clearing the menu, the filter remains expanded.
Preferably, we'd return the menu to its previous unfiltered state (presumably a mixture of collapsed/uncollapsed based on prior user behavior). Otherwise, can be fully collapsed (i.e., the menu resets).
Related Issues
No.
Questions
No.
Other
Demo
For a live demo of the issue, see
Reproduction
In order to reproduce this bug, do the following:
Expected Results
The following results are expected:
Actual Results
The following are the actual results:
Environments
The following environments are affected: