fetrarij / ngx-daterangepicker-material

Pure Angular 2+ date range picker with material design theme, a demo here:
https://fetrarij.github.io/ngx-daterangepicker-material/
MIT License
247 stars 248 forks source link

Not working with ViewEncapsulation.ShadowDom, #372

Open fenta23 opened 3 years ago

fenta23 commented 3 years ago

Versions

Describe the bug If you use ViewEncapsulation.ShadowDom, the datepicker doesn't open

To Reproduce Steps to reproduce the behavior: Just add ShadowDom and see... no open class will be rendered to the md-drppicker element

Expected behavior should open

Stackblitz link https://stackblitz.com/edit/ngx-daterangepicker-material-for-angular8-2rhngp?file=src/app/app.component.ts

Additional context does it depend on some default styles?

fenta23 commented 3 years ago

@HostListener('document:click', ['$event']) outsideClick(event): void { ...

in dateRangePicker.directive hides the datepicker right after it is opened