Closed machineghost closed 7 years ago
This is arguably super useful, I was trying to do it a couple of minutes ago, unfortunately I'll have to copy/paste a bunch of styles.
Something similar to this: https://github.com/moroshko/react-autosuggest#inputPropsProp
The fix is available in 0.3.2
now.
Cool @wangzuo
Currently if you do:
it behave the exact same as:
It would be nice if
InputMoment
could take those three as props, and then pass them along as props to the first element it renders (<div className="m-input-moment">
). Of course, since that element already has a className, you'd want to combine them somehow ...Adding this functionality would help make it easier to hide/show the calendar in response to an input being focused (a common pattern), and would just make the library more flexible in general.
Thanks for considering this.