Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Check where we can swap querySelector for refs #227

Open
thearabbit opened this issue Feb 2, 2017 · 1 comment
Open

Check where we can swap querySelector for refs #227

thearabbit opened this issue Feb 2, 2017 · 1 comment
Assignees
Labels

Comments

@thearabbit
Copy link

Could your example to use inputRef={ ref => this.textInput = ref } instead of document.querySelector()?

@themeteorchef themeteorchef changed the title Example to use "inputRef={ ref => this.textInput = ref }" instead of "document.querySelector()" Check where we can swap querySelector for refs Feb 2, 2017
@themeteorchef
Copy link
Owner

It could, but the structure of the <FormControl /> component from React Bootstrap made this difficult in the past (hard to access the nested refs if I recall correctly).

@themeteorchef themeteorchef self-assigned this Feb 2, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants