Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlewind committed Jan 3, 2025
1 parent 77c4868 commit e73d45f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocksuite/framework/block-std/src/range/range-binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ export class RangeBinding {
);

this.host.disposables.addFromEvent(document, 'selectionchange', () => {
serialThrottle(() => this._onNativeSelectionChanged());
const throttled = serialThrottle(() => this._onNativeSelectionChanged());
throttled().catch(console.error);
});

this.host.disposables.add(
Expand Down

0 comments on commit e73d45f

Please sign in to comment.