Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

MDCTextField, MDCSelect floating label broken when inside MDCDialog with having a pre filled valueΒ #4328

Closed
@MrSimmmons

Description

Bugs

Having pre filled values inside a notched outline versions of MDCTextField and MDCSelect elements doesn't seem to show them.
For some reason the extra width style that is applied to make the notch wide enough for the text just starts out at 0. If you go into inspect element and manually change the extra style that is applied to the notch, the label will show up.

What MDC Web Version are you using?

0.43.1

What browser(s) is this bug affecting?

Chrome

What OS are you using?

MacOS

What are the steps to reproduce the bug?

Put a pre-filled notched outlined version of MDCTextField or MDCSelect inside a dialog

CodePen

What is the expected behavior?

The label shows up

What is the actual behavior?

The labels don't show up

Any other information you believe would be useful?

This only seems to effect the text field and select elements when they is inside a dialog as the background text field and select elements use the exact same code and work fine
screen shot 2019-02-01 at 2 09 56 am

Metadata

Assignees

No one assigned

    Labels

    Unresolved (Archived)Open and unresolved issues and PRs that were closed due to archiving the repository.backlogthis-Q

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions