react icon indicating copy to clipboard operation
react copied to clipboard

Make onClick use a SyntheticPointerEvent

Open jamiebuilds opened this issue 9 months ago • 1 comments

Just opening this for discussion.

The browser click event was updated many years ago from a MouseEvent to a PointerEvent and is widely supported by browsers today.

However, React is still constructing a SyntheticMouseEvent for onClick, this PR is to update that to use SyntheticPointerEvent

jamiebuilds avatar May 28 '25 22:05 jamiebuilds

Comparing: 5717f1933f2e8b10406fde1043c3047cbfbddc82...8d3fc6a2c47da08edb3646128b9cee44bdc3fa90

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.68 kB 6.68 kB = 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 529.84 kB 529.84 kB = 93.52 kB 93.52 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 650.94 kB 650.94 kB = 114.65 kB 114.65 kB
facebook-www/ReactDOM-prod.classic.js = 675.89 kB 675.89 kB = 118.93 kB 118.93 kB
facebook-www/ReactDOM-prod.modern.js = 666.17 kB 666.17 kB = 117.32 kB 117.32 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by :no_entry_sign: dangerJS against 8d3fc6a2c47da08edb3646128b9cee44bdc3fa90

react-sizebot avatar May 30 '25 09:05 react-sizebot

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.

github-actions[bot] avatar Aug 28 '25 10:08 github-actions[bot]

Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you!

github-actions[bot] avatar Sep 04 '25 10:09 github-actions[bot]