https://codepen.io/anon/pen/BgwVMO?&editable=true
It appears a multiline TextField cannot have a placeholder
A multiline TextField should render with a placeholder, if specified.
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
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.
Most helpful comment
Went ahead and tried my hand at porting to the
6.0
branch