Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

color picker in reactive forms doesn't select color #3179

Closed
shalaby opened this issue Jun 22, 2017 · 1 comment
Closed

color picker in reactive forms doesn't select color #3179

shalaby opened this issue Jun 22, 2017 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@shalaby
Copy link

shalaby commented Jun 22, 2017

I'm submitting a ... (check one with "x")

[x ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

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:

  • Angular version: 4.2.4
  • PrimeNG version: 4.1.0-rc.2
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [ TypeScript 2.3 ]

  • Node (for AoT issues): node --version = 8

@cagataycivici cagataycivici self-assigned this Jun 22, 2017
@cagataycivici cagataycivici added this to the 4.1.1 milestone Jun 22, 2017
@cagataycivici cagataycivici added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Jun 22, 2017
@toregua
Copy link

toregua commented Jun 28, 2017

Almost same plnkr with a button that show that reactive form is not valid at first load until a value is choose with the picker :
http://plnkr.co/edit/zLVnYnRHdqmwI3njTu4T?p=preview

@cagataycivici cagataycivici added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels Jun 29, 2017
@cagataycivici cagataycivici modified the milestones: 4.1.0-RC3, 4.1.1 Jun 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

4 participants