color picker in reactive forms doesn't select color #3179
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
http://plnkr.co/edit/O5XN0CGMBWERE5ByaWDY?p=preview
Current behavior
in reactive form with pre defined value for the color control, this initial value doesn't get selected.
myForm: FormGroup; constructor(public fb: FormBuilder) { let color = 'ff0000'; this.myForm = this.fb.group({ color: [color] }); }
Expected behavior
the color should be selected
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Language: [ TypeScript 2.3 ]
Node (for AoT issues):
node --version
= 8The text was updated successfully, but these errors were encountered: