Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[TextField] Remove ref prop on text field #2703

Merged
merged 1 commit into from
Dec 29, 2015
Merged

Conversation

alitaheri
Copy link
Member

This is an anti pattern. It's not possible to pass ref down inot the component. So having it as a prop is useless and will prevent refrencing the component.

Closes #2699

@oliviertassinari Please review

This is an anti pattern. It's not possible to pass ref down inot the component. So having it as a prop is useless and will prevent refrencing the component.
@oliviertassinari
Copy link
Member

@alitaheri Yeah, let's get ride of this ref property. I don't understand why it's exposed to the public API.

alitaheri added a commit that referenced this pull request Dec 29, 2015
[TextField] Remove ref prop on text field
@alitaheri alitaheri merged commit af99fef into mui:master Dec 29, 2015
@alitaheri alitaheri deleted the fix-2699 branch December 29, 2015 21:33
@alitaheri
Copy link
Member Author

@oliviertassinari Thanks 👍 🎉

@zannager zannager added the component: text field This is the name of the generic UI component, not the React module! label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: text field This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TextField doesn't support 'ref' ?
3 participants