Support Mac-style drag+release in Select package
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:
- Hover over Select component
- Press down on mouse (options list appears)
- Drag down one item (hover state follows cursor)
- 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
Hmm, we could implement this FR, but it will require a bit of work. We'd have to reimplement some basic OS behavior in the React component.
Note that we do have an alternative to Select... HTMLSelect delegates to the OS select menu behavior, but presents the button with Blueprint styling. This is recommended for simple use cases where the list is very short. You can see that in the linked example:
