Skip to content

Custom Form Field (phone example bugs/feature enhancements) #13195

@tmburnell

Description

@tmburnell

Bug/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: material/form-fielddocsThis issue is related to documentationhelp wantedThe team would appreciate a PR from the community to address this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions