palantir/blueprint

Support Mac-style drag+release in Select package

Open

#5,328 建立於 2022年5月26日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)TypeScript (20,263 star) (2,167 fork)batch import
P2Package: selectType: feature requesthelp wanted

描述

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

貢獻者指南

Support Mac-style drag+release in Select package · palantir/blueprint#5328 | Good First Issue