Skip to content

bug(input): Not correctly working as an Angular Element #18805

Open
@jimkeecn

Description

@jimkeecn

Reproduction

I have create a github repo for this performance issue from angular material, here is the link https://github.com/jimkeecn/buildxactDemo

the problem in the repo is. I have created an angular element with a mat-input. after building the angular element and used in other project. the mat-input is buggy, the placeholder will not move up while the input is focus and filled.

Steps to reproduce:

  1. download the repo.
  2. open the index.html in folder /I am outside of the project/
  3. you will see the performance of the angular material input and table.
  4. the component is actually in library project folder /search-page
  5. angular element is in external project folder /app-component

Expected Behavior

I was expecting to see the mat-input will run smooth like it running without building as angular elements.

Actual Behavior

mat-input
placeholder is not lifted up after the field is focus or filled.

Environment

  • Angular: ~9.0.3
  • Angular/elements: ^9.0.4
  • CDK/Material: ^9.1.0
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/inputelementsThis issue is related to Angular Elements and Web Components.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions