techniq / mui-downshift

Thin layer over paypal's downshift to use Material UI visual components
https://techniq.github.io/mui-downshift/
MIT License
92 stars 24 forks source link

Add custom adornment example and include input handlers in getInputProps #72

Closed cvanem closed 5 years ago

cvanem commented 5 years ago

This PR adds the inputRef, handleMenuToggle, and handleClearSelection to the getInputProps callback.
This allows the ability to specify a custom endEdorment for the input component while leveraging the existing focus handlers.

techniq commented 5 years ago

Seemed liked a reasonable approach, thanks!

I'd like to restructure accessing downshift props through React context or via a hook at some point, but without a major semver change, this will work well.

Released as 1.3.0