Fluentui: Can't have placeholder with a multiline TextField

Created on 26 Jun 2019  路  8Comments  路  Source: microsoft/fluentui

Environment Information

  • __Package version(s)__: 6.190.0
  • __Browser and OS versions__: Chrome

Please provide a reproduction of the bug in a codepen:

https://codepen.io/anon/pen/BgwVMO?&editable=true

Actual behavior:

It appears a multiline TextField cannot have a placeholder

Expected behavior:

A multiline TextField should render with a placeholder, if specified.

Priorities and help requested:

Are you willing to submit a PR to fix? No, not as familiar with code at the moment

Requested priority: Normal

Products/sites affected: Virtual Agent Designer

TextField Fixed Type

Most helpful comment

Went ahead and tried my hand at porting to the 6.0 branch

All 8 comments

This seems like a reasonable request. @ecraig12345 do you have any concerns regarding the above before I work on an implementation?

The placeholder is just a native prop which we pass through to the <input> or <textarea>, but apparently for <textarea> (multiline) it should be supported but isn't getting passed through because placeholder is missing from textAreaProperties in packages/utilities/src/properties.ts. (Thanks @rcasto for including a codepen to make this easy to debug!)

Just curious, would this fix get ported to a 6.x.x package release? Not sure exactly how that works

Thanks so much for fixing this! Porting doesn't happen automatically, someone has to cherry-pick the change into a branch based on the 6.0 branch, then make a PR into 6.0. If you don't mind porting the change, that would be great! Otherwise @KevinTCoughlin or I can do it.

I'll reopen this until the port is done.

Went ahead and tried my hand at porting to the 6.0 branch

:tada:This issue was addressed in #9600, which has now been successfully released as [email protected].:tada:

Handy links:

This issue can be closed now that the port to 6.x was completed in https://github.com/OfficeDev/office-ui-fabric-react/pull/9609.

Was this page helpful?
0 / 5 - 0 ratings