fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Placeholder in Textfield removed?

Open HannesDel opened this issue 9 years ago • 5 comments

I updated my version, now the placeholder prop is not available anymore on Textfield.

HannesDel avatar Jul 18 '17 14:07 HannesDel

It appears to be working fine with the most recent release. Here's a codepen of the current release.

https://codepen.io/micahgodbolt/pen/owRQMZ

What version are you using, and are you seeing an error, or is the placeholder just not working?

micahgodbolt avatar Jul 18 '17 14:07 micahgodbolt

I'm using version 4.21.1 And the error I'm getting is: [ts] Property 'placeholder' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly<{ children?: ReactNode; }> &...'.

HannesDel avatar Jul 18 '17 15:07 HannesDel

This could be more of an issue with @types/react.

dzearing avatar Jul 18 '17 21:07 dzearing

Any ideas how I could solve this? Revert to an older version of @types/react maybe?

HannesDel avatar Jul 19 '17 08:07 HannesDel

I reverted @types/react to version 15.0.35 from version 15.0.38 and now it seems to work. Thanks @dzearing

HannesDel avatar Jul 19 '17 11:07 HannesDel