Open
Description
Reproduction
Use StackBlitz to reproduce your issue:
https://stackblitz.com/edit/harness-issue-7whdxy?devtoolsheight=33&file=src/app/button-harness-example.spec.ts
Steps to reproduce:
- Have an input with type = "number"
- Try to set input value to a numeric value via
matInputHarness.setValue(24)
or try to read a numeric value viamatInputHarness.getValue()
.
Expected Behavior
I can read and set values as numbers (not strings), as numbers would appear in FormControl when user interacts with <input type="number">
.
Actual Behavior
I can only set and read values as strings.
Environment
- Angular: 12
- CDK/Material: 12
- Browser(s): Firefox
- Operating System (e.g. Windows, macOS, Ubuntu): Ubuntu