palantir/blueprint

Support Mac-style drag+release in Select package

Open

#5328 opened on May 26, 2022

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

Description

Environment

  • Package version(s): 4.2.0 Select
  • Browser and OS versions: Chrome 101.0.4951.64, OS X 12.3.1

Feature request

Support Mac-style drag+release to change the selection in a Select component.

Expected behavior:

  1. Hover over Select component
  2. Press down on mouse (options list appears)
  3. Drag down one item (hover state follows cursor)
  4. Release to select (item is selected)

Actual behavior: 2. Press down on mouse (no option list appears) 3. XX 4. XX

Examples

How it works on Mac:

https://user-images.githubusercontent.com/357170/170533964-72c9a2b7-cc14-49b8-b935-02cf4fc936a5.mov

How it works (currently) on Blueprint:

https://user-images.githubusercontent.com/357170/170534462-e9598703-a45b-49c6-b560-28cd6d39c4fa.mov

As tested on https://blueprintjs.com/docs/#select/select-component

Contributor guide