Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Can't pass onRenderCaret to InputPopup from Combobox #49

Open
hakanderyal opened this issue Jan 5, 2017 · 0 comments
Open

Can't pass onRenderCaret to InputPopup from Combobox #49

hakanderyal opened this issue Jan 5, 2017 · 0 comments

Comments

@hakanderyal
Copy link

I've just upgraded to 5.x line from 4.x, and couldn't find a way to pass onRenderCaret prop from Combobox to InputPopup.

I've fixed it with

const { onRenderCaret, onRenderPopup, inputPopupProps, styling, ...restProps } = this.props;
const _onRenderCaret = inputPopupProps.onRenderCaret ? inputPopupProps.onRenderCaret : onRenderCaret;

//

{_onRenderCaret(styling, isActive, hover, caret)}

in render method of InputPopup, but not sure this matches the coding style of the project.

Am I missing something, or is it really missing?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant