Skip to content

Conversation

@J-Michalek
Copy link
Contributor

@J-Michalek J-Michalek commented May 27, 2025

Resolves: #1944

The usePointerDownOutside event handler can be expensive because it queries the DOM. The Editable component only needs to track the pointerdown event while it is in editing mode.

@pkg-pr-new
Copy link

pkg-pr-new bot commented May 27, 2025

Open in StackBlitz

npm i https://pkg.pr.new/reka-ui@1945

commit: 42d14fc

Copy link
Member

@zernonia zernonia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Let's clean up for the console log ya! 😁

Thanks for the PR!

@J-Michalek
Copy link
Contributor Author

@zernonia Thanks for the review, I removed the console.log.

@zernonia zernonia merged commit 4615460 into unovue:v2 May 27, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Editable: usePointerDownOutside unnecessarily triggers on every click

2 participants