Skip to content

bug(MatInputHarness): Does not properly set value with <input type="color"> #18790

Closed
@roger6106

Description

@roger6106

Reproduction

See StackBlitz: https://stackblitz.com/edit/components-issue-3u5pnf?file=src/app/app.component.spec.ts

Steps to reproduce:

  1. Using the MatInputHarness, setValue('#123456') (or any other color) of an <input type="color">.
  2. Use getValue() to get the result.

Expected Behavior

The value should be #123456.

Actual Behavior

It is always #000000.

Environment

  • Angular: 9.0.6
  • CDK/Material: 9.1.2
  • Browser(s): Chrome 80.0.3987.132, Safari 13.0.5
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS 10.15.3

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions