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

Component: Dropdown TypeError: Cannot read properties of undefined (reading 'length') #14027

Closed
mq321 opened this issue Nov 4, 2023 · 4 comments
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted

Comments

@mq321
Copy link

mq321 commented Nov 4, 2023

Describe the bug

ERROR TypeError: Cannot read properties of undefined (reading 'length')
at get inputClass [as inputClass] (primeng-dropdown.mjs:628:135)
at Dropdown_span_2_Template (primeng-dropdown.mjs:50:96)
at executeTemplate (core.mjs:12003:13)
at refreshView (core.mjs:13498:13)
at detectChangesInView (core.mjs:13663:9)
at detectChangesInEmbeddedViews (core.mjs:13606:13)
at refreshView (core.mjs:13522:9)
at detectChangesInternal (core.mjs:13437:9)
at ViewRef$1.detectChanges (core.mjs:13914:9)
at set disabled [as disabled] (primeng-dropdown.mjs:410:21)

Environment

development

Reproducer

No response

Angular version

16.2.12

PrimeNG version

16.7.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18

Browser(s)

Google Chrome

Steps to reproduce the behavior

No response

Expected behavior

No response

@mq321 mq321 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 4, 2023
@ericvaroto
Copy link

Hi, I'm getting the same error when my "optionValue" has a value

@ngadceser
Copy link

ngadceser commented Nov 5, 2023

I'm checking all the sub versions and they all have the same error as above.
The LTS version is not throwing any errors.
"primeng": "~16.6.0", I set this up and install it, and I don't get any errors.
~ ~ .. ~ ~
Thanks for the link below.

@wadlieb
Copy link

wadlieb commented Nov 5, 2023

The issue is addressed here: #13996 (comment)

@cetincakiroglu
Copy link
Contributor

Hi,

The issue is duplicate of #13996 (comment)

Closing the issue.

@cetincakiroglu cetincakiroglu added Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted
Projects
None yet
Development

No branches or pull requests

5 participants