question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sorting Dropdown cannot be opened

See original GitHub issue

Environment Details

  • Spartacus: 2.0.0.next.1
  • Browser: current Chrome
  • OS: Windows 10

Steps to Reproduce

  1. Run Spartacus locally.
  2. Open https://localhost:4200/electronics-spa/en/USD/Open-Catalogue/Cameras/CameraAccessories-%2526-Supplies/CameraLenses/c/588
  3. Click the sort button which says “Relevance”.

Observed Results

Clicking the dropdown throws two errors which read:

core.js:5871
TypeError: Cannot read property 'nativeElement' of undefined
    at NgDropdownPanelComponent.ngOnInit (ng-select.js:2102)
zone-evergreen.js:659 
Unhandled Promise rejection: 
Cannot read property 'clientHeight' of undefined ; 
Zone: <root> ;
Task: Promise.then ;
Value: TypeError: Cannot read property 'clientHeight' of undefined

Expected Results

The dropdown menu opens.

Offer to Fix

No.

Additional Information

It’s an untampered Spartacus installation.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
eljoujatcommented, Apr 23, 2020

Hi ,

I just reproduced the same issue :

  • MacOs Mojave (version 10.14.6)
  • Chrome Version 80.0.3987.163

I thins it’s a compatibility issue with Rxjs and angular see https://stackoverflow.com/questions/50316141/ng-select-in-angular5-issue-error-typeerror-object-is-not-a-function-at

The given solution worked for me : npm i -s @ng-select/ng-select@latest rxjs-compat

0reactions
Xymmercommented, May 6, 2020

closing as it seems to be a dependency issue, please contact @kacperknapik if it persists

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sorting a sheet with drop down does not work properly
I am using Excel 2010 on Windows 7. I have an Excel sheet (created by someone else who has since left) that has...
Read more >
Why can't I sort in Open/Save dialog boxe… - Apple Community
I select "Name" from that dropdown, but the order of files does not change (appears very random). I can switch to None and...
Read more >
Dropdown option order best practices when not using alpha ...
NN/g article explaining different sorting which should be used depending on the scenario. Alphabetical Sorting Must (Mostly) Die.
Read more >
Dynamic Dropdown unable to sort alphabetically
I have created 2 dropdown lists, the second feeds off the first. I would like the results of the second to show alphabetically,...
Read more >
Excel Data Validation Tips and Troubleshooting - Contextures
Corruption · On the Ribbon, click File, and then click Open · Click Computer, then click Browse · Select the file with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found