palantir/blueprint

Mouse Event onChange Slider

Open

#5916 opened on Feb 1, 2023

View on GitHub
 (1 comment) (0 reactions) (0 assignees)TypeScript (20,263 stars) (2,167 forks)batch import
P2Package: coreType: feature requesthelp wanted

Description

Improve Slider in Blueprint

Slider onChange does not have mouse event as a return value. Would be nice to add it, cause we cannot stop the propagation of the event.

Current: onChange={(value) => console.log(value); }

Expected: onChange={(value, e) => console.log(value); e.stopPropagation()}

Contributor guide