Skip to content
This repository has been archived by the owner on Sep 20, 2018. It is now read-only.

Does this package work with stateless components? #16

Open
golmansax opened this issue Feb 21, 2018 · 0 comments
Open

Does this package work with stateless components? #16

golmansax opened this issue Feb 21, 2018 · 0 comments

Comments

@golmansax
Copy link

Hi, I'm getting the following errors when calling <NumberInput> within a stateless component.

const X = () => (
  <NumberInput ...>
);

Warning: Stateless function components cannot be given refs. Attempts to access this ref will fail.
Check the render method of `NumberInput`.

Uncaught TypeError: Cannot read property 'getInputNode' of undefined

Is this correct? I think the package should work with stateless components.

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