Closed YaoKaiLun closed 1 year ago
Latest commit: c912782e91124f5e07af6e4ed152a240645fe3c6
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
In some situations, clientRects will be empty, like inserting an image.
Description
When focus at the start of a middle line in a paragraph,
getBoundingClientRect
wil get an incorrect height and usinggetClientRects
can get the correct heightAfter fixing:
Issue
Fixes: #81
Checks
pnpm test
.pnpm lint
. (Fix errors withpnpm fix
.)pnpm start
.)pnpm changeset
.)