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

Can't pass onRenderCaret to InputPopup from Combobox #49

@hakanderyal

Description

@hakanderyal

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions