8000 createI13nNode breaks refs? · Issue #73 · yahoo/react-i13n · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
createI13nNode breaks refs? #73
Closed
Closed
@maximilianschmitt

Description

@maximilianschmitt

Hi! If I wrap a component for which I have set a ref, how can I reference the 'original' component?

e.g., with...

const I13nInput = createI13nNode(MyCustomInput);
<I13nInput ref="someRef" />

...refs.someRef now points to the I13nInput component and not to the 'underlying' MyCustomInput component. It seems to me the only way around this is if this was possible:

<I13nComponent>
  <MyCustomInput ref="someRef" />
</I13nComponent>

Or am I missing something?

Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0