question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: onPointerEnterCapture and onPointerLeaveCapture result in `unknown event handler property`

See original GitHub issue

React version: v16.12.0 from https://unpkg.com/react/umd/react.development.js

Steps To Reproduce

  1. attach onPointerEnterCapture to a JSX element
  2. observe unknown event handler property error in console

Link to code example: https://jsfiddle.net/tommedema/1uqoemxs/2/

The current behavior

It displays a unknown event handler property warning

The expected behavior

The capturing phase of the onPointerEnter and onPointerLeave events should be supported

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
necolascommented, May 19, 2020

It’s the same as the mouse event equivalents, they don’t bubble and don’t have a capture phase: https://reactjs.org/docs/events.html#mouse-events. You should use onPointerOver/Out instead.

0reactions
bl00mbercommented, May 19, 2020

@tommedema are you sure this event exist? Can you send a link to ECMA specification?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning: Unknown event handler property `onHeaderClick`. It ...
Events are working, but I am getting error in chrome devTool (i.e. Warning: Unknown event handler property onTableCheckBoxSelection .
Read more >
React Higher Order Components (HOC) - Unknown Event ...
Recently I've been playing with React, and one of the specific techniques is the Higher Order Components. In this case I created a...
Read more >
API - React Select
A flexible and beautiful Select Input control for ReactJS with multiselect, autocomplete and ajax support.
Read more >
types/react definitions - UNPKG
Props<T> is now deprecated, which means that the `children` // property is ... This might be a child element to the element on...
Read more >
IHTMLSelectProps - JupyterLab Documentation
Properties. Optional about. about: string. Inherited from React.SelectHTMLAttributes.about. Defined in node_modules/@types/react/index.d.ts:1846 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found