Skip to content

Commit

Permalink
Fix Selection.getBounds() when starting range at end of text node
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Feb 13, 2024
1 parent cd0c9cd commit 679ad6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- Fix toolbar button state not updated in some cases
- Narrower `BubbleTheme.tooltip` type
- Fix `Selection.getBounds()` when starting range at end of text node

# 2.0.0-rc.1

Expand Down
2 changes: 1 addition & 1 deletion packages/quill/test/unit/core/selection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ describe('Selection', () => {
);
});

test('selection starting at end of text node', function () {
test('selection starting at end of text node', () => {
const { reference, container } = setup();
container.style.width = `${reference.width * 4}px`;
const selection = createSelection(
Expand Down

0 comments on commit 679ad6a

Please sign in to comment.