-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: popover with very narrow text (#1894)
#1702 If the page is resized before any footnotes have been opened, the `resize` action can compute a very small `max-width` based on zero size footnote contents. This was allowed to happen because `isMounted` always returns true after the popover element is created but not yet shown. - `isMounted` now checks whether the popover is contained in the DOM. - `createElementFromHTML` now unwraps newly created elements to improve robustness in case `parentElement` gets used elsewhere.
- Loading branch information
Showing
3 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters