Custom Form Field (phone example bugs/feature enhancements)
See original GitHub issueBug/Feature enhancement
In this provided example of a phone number: creating-a-custom-form-field-control There is a few things that are lacking:
- Size is not enforced. the Demo has size 3 but a user is allowed to type as many char as they want.
– The extra char’s (more than 3) are overflow hidden so you dont see them.
– After writing this up, I found this should be
maxlength="3"
- Auto advance. It would be nice if the input would auto advance to the next into once the size has been reached.
- The span dashes are selectable (implementation css could turn this off).
- Since this is actually one form control, it would be nice to highlight all number at once and hit delete to clear out the values (but dont know if this is possible since they are separate input boxes)
- The demo works in the link but when you click open in stackblitz … the HTML file is empty … therefore the demo does not work
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Custom form enhancements | Adobe Workfront
The following significant enhancements were made for managing custom forms in the 22.2 release.
Read more >Changelog - Customer Fields
New feature: Collect multiple sets of custom data using a 'Repeating group' field - Learn more · Added accessibility support to embedded forms...
Read more >Separate enhancements from severity field / Bug classification ...
The current severity field implies enhancements are a severity on their own - but they're not really. Enhancements could be critical, minor, trivial,...
Read more >How to Effectively Prioritize Bug Fixes vs Product Features?
Product teams make truly challenging product vs bug fix decisions by using one of these common product prioritization methods. Learn more!
Read more >Define, capture, triage, and manage software bugs in Azure ...
Prerequisites; Bug work item type; Fields specific to bugs; Choose how your team tracks bugs; Customize work item type; Add or capture bugs...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can we get someone to look at this? it appears that there is a need for being able to create custom form components, but it is entirely unclear as to how to get validation, value passing and error highlighting working… also see https://github.com/angular/material2/issues/13624
I was able to create a custom mat-form-field which implements MatFormFieldControl, I was also able to make it work with formControl however whenever the field is invalid, the color of the entire mat-form-field does not change as a normal mat-form-field, it should turn to red but it’s not, because the class mat-form-field-invalid is not being added.