components icon indicating copy to clipboard operation
components copied to clipboard

Input required form field indactor missing

Open ghaddon opened this issue 9 years ago • 13 comments

Bug, feature request, or proposal:

On Input control flagged as required does not show when using FormBuilder.

What is the expected behavior?

Would expect same behavior using template design method.

What is the current behavior?

No required indicator showing to the right of placeholder value when using the model method and Buildform.

What are the steps to reproduce?

Create input form control using FormBuilder and require field.

What is the use-case or motivation for changing an existing behavior?

Shows required indicator in template form creation but not FormBuilder method.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

I see it in Chrome Version: 61.0.3163.100 (Official Build) (64-bit). Using Angular Version: 4.4.5 Using Angular Material Version: 2.0.0-beta.12 Using TypeScript Version: 2.3.3

Is there anything else we should know?

Nope

ghaddon avatar Oct 29 '17 22:10 ghaddon

Can you add a Plunker or StackBlitz that describes your issue?

Plunker starter (using on @master): https://goo.gl/DlHd6U
StackBlitz starter (using latest npm release): https://goo.gl/wwnhMV

donroyco avatar Oct 30 '17 13:10 donroyco

See https://github.com/angular/material2/issues/2574

willshowell avatar Oct 30 '17 16:10 willshowell

Closing as duplicate of #2574

josephperrott avatar Oct 30 '17 22:10 josephperrott

Have not had time to create Plunker to show the problem. I read #2574 but, not sure it is the same. Can you direct me to the build to expect @2574 is fixed?

ghaddon avatar Oct 31 '17 17:10 ghaddon

@ghaddon if you can show a reproduction that is distinctive from the description in #2574, then that would be worth looking into. But your description of the issue is nearly identical to that one.

willshowell avatar Oct 31 '17 17:10 willshowell

Will,

Just completed sample of error I'm getting. can find onhttps://angular-material2-issue.stackblitz.io.

Thanks, Gary

ghaddon avatar Oct 31 '17 20:10 ghaddon

@ghaddon try forking the stackblitz. Your link just points to the default template.

willshowell avatar Oct 31 '17 21:10 willshowell

I forked it and it gave me the following https://angular-material2-issue-nagunv.stackblitz.io. Gary On Tuesday, October 31, 2017, 2:03:24 PM MST, Will Howell [email protected] wrote:

@ghaddon try forking the stackblitz. Your link just points to the default template.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ghaddon avatar Oct 31 '17 21:10 ghaddon

@ghaddon it's still empty

willshowell avatar Oct 31 '17 21:10 willshowell

Try this url: https://angular-material2-issue-ei1ca7.stackblitz.io

On Tuesday, October 31, 2017, 2:14:14 PM MST, Will Howell [email protected] wrote:

@ghaddon it's still empty

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ghaddon avatar Oct 31 '17 21:10 ghaddon

@ghaddon yeah the issue you are describing is exactly the same as #2574

"MatInput doesn't set required asterisk when the validator is set in reactive forms"

willshowell avatar Nov 01 '17 01:11 willshowell

Thanks Will. On Tuesday, October 31, 2017, 6:43:46 PM MST, Will Howell [email protected] wrote:

@ghaddon yeah the issue you are describing is exactly the same as #2574

"MatInput doesn't set required asterisk when the validator is set in reactive forms"

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ghaddon avatar Nov 01 '17 16:11 ghaddon

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.