palantir/blueprint
Vedi su GitHubIs there a way to delete a slider handle with a mouse event?
Open
#4301 aperta il 31 ago 2020
P2Package: coreType: feature requesthelp wanted
Metriche repository
- Star
- (20.263 star)
- Metriche merge PR
- (Merge medio 43g 10h) (27 PR mergiate in 30 g)
Descrizione
Environment
- Package version(s): 3.25.0
- Browser and OS versions: Ubuntu 18.04, Chrome 84
Question
For the Slider.Handle component, it seems like there's no native event listeners other than onChange and onRelease. I wanted to implement something like a double click to remove a handle. I'm guessing that the onClick listener is not supported due to interfering with the drag behavior, but I was wondering if there was any other way I could implement something similar. I got around the addition by having another button on the right that would add a handle on the right side, but it would be nice if I can add a handle anywhere on the slider track more intuitively.