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

Select Button error when options are not defined #5913

Closed
arjunshankar opened this issue Jun 14, 2018 · 1 comment
Closed

Select Button error when options are not defined #5913

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

Comments

@arjunshankar
Copy link

arjunshankar commented Jun 14, 2018

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)
https://stackblitz.com/edit/angular-z6zum3

Current behavior

  1. use SelectButton with custom template - as explained in the docs.
  2. data is provided to selectButton on demand.
  3. following error seen in console.
    ERROR TypeError: Cannot read property 'length' of undefined
    at Object.eval [as updateDirectives] (SelectButton.html:2)
  4. the error is not seen if not using a custome template

Expected behavior

  1. there shouldn't be any error.

What is the motivation / use case for changing the behavior?

  1. breaks the flow momentarily.

Please tell us about your environment:

  • Angular version: 6.0

  • PrimeNG version: 5.2.7

  • 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: [all | TypeScript X.X | ES6/7 | ES5]

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

@cagataycivici cagataycivici changed the title Select Button - error if using custom template Select Button error when options are not defined Jun 20, 2018
@cagataycivici cagataycivici self-assigned this Jun 20, 2018
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jun 20, 2018
@cagataycivici cagataycivici added this to the 6.0.0-Final milestone Jun 20, 2018
@arjunshankar
Copy link
Author

Thanks for the quick turn around....

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

2 participants