Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We noticed that Popper was sometimes closing the dorpdown inaccurately. This was pinned down to timeouts being incorrectly cleared, and thefore sometimes running when they ought not to. Careful examination of the code revealed that they weren't being tracked very well, and thus stomped on or lost. This approach leverages a ref to track the value to avoid loss during re-renders, and to also avoid unnecessary re-renders.
- Loading branch information