-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Reproduction
https://codesandbox.io/s/preact-on-capture-overwrite-e8dfk?file=/src/index.js:0-548
//import React from "react";
//import ReactDOM from "react-dom";
import React from "preact/compat";
import ReactDOM from "preact/compat";
function App() {
return (
<div
onKeyDown={() => console.log("div noncapture")}
onKeyDownCapture={() => console.log("div capture")}
>
<input
onKeyDown={() => console.log("input noncapture")}
onKeyDownCapture={() => console.log("input capture")}
/>
</div>
);
}
const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);Steps to reproduce
Open codesandbox and type into the input field
Expected Behavior
Console:
div capture
input capture
input noncapture
div noncapture
This is how React behaves
Actual Behavior
div capture
input capture
input capture
div capture
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels