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

Date picker panel moving out of its parent input while scrolling #5905

Open
sireeshap opened this issue Aug 15, 2020 · 3 comments
Open

Date picker panel moving out of its parent input while scrolling #5905

sireeshap opened this issue Aug 15, 2020 · 3 comments
Labels
comp(datepicker) needs: demo demo for this feature / fix should be added

Comments

@sireeshap
Copy link

this is duplicate of #2993 which is closed, but still persist in version "ngx-bootstrap": "^5.6.1". Please fix this to save developers life.

@ProdigSun
Copy link

I'm having the same problem. Is there any fix on the horizon?

@apotapcukv apotapcukv added the needs: demo demo for this feature / fix should be added label Nov 5, 2021
@casper5822
Copy link

casper5822 commented Dec 25, 2021

Same problem for me with angular 12 and ngx-bootstrap ^7.1.2 with bootstrap 5

@Nicolasp-dev
Copy link

I have a similar issue, in my case I implemented the datepicker within a dropdown. When scrolling, the datepicker container moves and when hovering over it, it repositions itself, with a delay of 1 second. I checked and apparently under these conditions, the datepicker does not perceive the window scroll event, causing it to move along with the scroll and reposition later. I tried listening to the scroll event to see what was happening and it turns out that by doing so, the datepicker already associates the event with its logic, causing it to remain under its container.

I'm not sure if it's the best solution but it worked for me.
scroll = (e: any) => console.log('scroll'); ngOnInit() { document.addEventListener('scroll', this.scroll, true); } ngOnDestroy() { document.removeEventListener('scroll', this.scroll, true); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp(datepicker) needs: demo demo for this feature / fix should be added
Projects
None yet
Development

No branches or pull requests

6 participants