DOM events
onPointerUp
Handles release of a pointer. The release may occur outside the element or be replaced by cancellation. Use pointer capture and cancellation handling for a real drag interaction; this example only observes release over a control.
Formal Syntax & Structure
react syntaxreact
onPointerUp={handler}Working Example
Example Snippetreact
export default function App() { return <button type='button' onPointerUp={e=>console.log('Released',e.pointerId)} onClick={()=>console.log('Selected')}>Select tool</button>; }