Sorting Dropdown cannot be opened
See original GitHub issueEnvironment Details
- Spartacus: 2.0.0.next.1
- Browser: current Chrome
- OS: Windows 10
Steps to Reproduce
- Run Spartacus locally.
- Open https://localhost:4200/electronics-spa/en/USD/Open-Catalogue/Cameras/CameraAccessories-%2526-Supplies/CameraLenses/c/588
- 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:
- Created 3 years ago
- Comments:8 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi ,
I just reproduced the same issue :
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
closing as it seems to be a dependency issue, please contact @kacperknapik if it persists