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] Multiline textfields (EnhancedTextarea) are still using valueLink #7779

Closed
pikzen opened this issue Aug 16, 2017 · 10 comments
Closed
Labels
bug 🐛 Something doesn't work component: text field This is the name of the generic UI component, not the React module! v0.x

Comments

@pikzen
Copy link

pikzen commented Aug 16, 2017

Problem description

Multiline textfields are still using the valueLink prop, causing warnings to be thrown.

warning.js:35 Warning: Unknown prop `valueLink` on <textarea> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
    in textarea (created by EnhancedTextarea)
    in div (created by EnhancedTextarea)
    in EnhancedTextarea (created by TextField)
    in div (created by TextField)
    in MuiComponent
    in div (created by DialogInline)
    in div (created by Paper)
    in Paper (created by DialogInline)
    in div (created by TransitionItem)
    in TransitionItem (created by TransitionGroup)
    in div (created by TransitionGroup)
    in TransitionGroup (created by DialogInline)
    in div (created by DialogInline)
    in DialogInline

Steps to reproduce

<TextField multilLine value={props.binding}/>

Versions

  • Material-UI: 0.19.0
  • React: 16.0.0-beta.5
  • Browser: Chrome latest, Firefox Nightly

Edit: Yes, I have read #2880.

Since valueLink has been deprecated for such a long time, I believe that simply removing the 6 references to it in EnhancedTextarea.js is the appropriate way to go. If someone is still using that... Well don't upgrade to 0.19 ¯_(ツ)_/¯.

I can provide a PR if needed.

@oliviertassinari oliviertassinari added the component: text field This is the name of the generic UI component, not the React module! label Aug 16, 2017
@oliviertassinari
Copy link
Member

Looking at #2880 I have the feeling that we have more components affected by this issue. How deprecated this issue, react@latest? I guess we can go ahead and remove it everywhere then.

@oliviertassinari
Copy link
Member

Anyway, the issue seems to be inactive, we have removed the occurrences of valueLink in the v1-beta branch.

@bogdansoare
Copy link

Would be helpful to fix in 0.19 because I don't think everybody will upgrade to v1 since it's such a big change.
Thanks.

@oliviertassinari
Copy link
Member

@bogdansoare If you find a non breaking change way to implement this change, we will definitely review your PR 👍.

@santialbo
Copy link

@oliviertassinari
Copy link
Member

@santialbo It could be yes. Last time I used valueLink was a long time ago.

@oliviertassinari oliviertassinari added the bug 🐛 Something doesn't work label Oct 3, 2017
@oliviertassinari oliviertassinari changed the title [0.19.0][TextField] Multiline textfields (EnhancedTextarea) are still using valueLink [TextField] Multiline textfields (EnhancedTextarea) are still using valueLink Oct 4, 2017
@iroy2000
Copy link

iroy2000 commented Oct 6, 2017

Is that fixed ?? I'm still having the same issue today

"material-ui": "^0.19.3"

@santialbo
Copy link

@iroy2000 it's fixed on master but it hasn't been released yet.

@writetosalman
Copy link

Any estimates when will it release? Thanks

@oliviertassinari
Copy link
Member

@writetosalman It must have been released by now. I can't see it in v0.19.4...master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: text field This is the name of the generic UI component, not the React module! v0.x
Projects
None yet
Development

No branches or pull requests

6 participants