Dropdown from primeng lib doesn’t work the proper way – "Expecting instance of DOM Element" is thrown


I use primeNg lib for my project. Recently I have added a paginator component and tried to use the embedded dropdown.
Here is a trick – instead of using AnimationRendererfrom @angular/platform-browser/animation, my app calls DebugRenderer2.

According to requirements I imported BrowserAnimationsModule to app.module.ts and uncommented this string in polyfills.ts

import 'web-animations-js';  // Run `npm install --save web-animations-js`.

But it still calls DebugRenderer2.
What can be wrong? Are there any workarounds for defining renders in angular?


Source: Angular Questions

Categorized as angular, angular-renderer, primeng-dropdowns Tagged , ,


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us