Closed sunny-g closed 8 years ago
Never mind, realized why this wouldn't work (onNext
can only push in a single value into the Subject's assosciated Observable, and to support multiple would be problematic. The alternative is to use destructuring.
Yes. And I think react-autosuggest use single argument in their event handlers as well. Just use object destructuring in the function parameter.
This PR allows any
interactions.listener
to be passed multiple arguments, a requirement I faced when wanting to use the greatreact-autosuggest
library.