bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Datepicker doesn't scroll itself on Firefox (but does on Chrome)

Open demns opened this issue 10 years ago • 1 comments

Bug description:

If you're precise, the scroll behavior on the opening of the datepicker doesn't work. It works though if it just at the right point. Better show as an example: https://www.dropbox.com/s/nylpria6l7yh5kl/Screenshot%202016-11-18%2018.27.09.png?dl=0 this is initial state https://www.dropbox.com/s/4cgofq51yfxwlha/Screenshot%202016-11-18%2018.27.13.png?dl=0 this is what you get, when you click on it, so scroll doesn't happen (and it does on Chrome for instance)

However, this way it does work: https://www.dropbox.com/s/egm2n95xeu2c2n3/Screenshot%202016-11-18%2018.32.02.png?dl=0 -- initial state https://www.dropbox.com/s/4sk1molk25gczq8/Screenshot%202016-11-18%2018.32.06.png?dl=0 -- scroll happened after click

Or if you prefer gifs -- https://www.dropbox.com/s/3dlm417iw7r5a4c/ff-datepicker-aub.gif?dl=0

Sorry if it's too hard to understand what I mean, if you need more examples, than tell me and I'll try to show it in some other way. Also I didn't find such an issue, either opened or closed. Also I may dig deeper, if you confirm this :)

Link to minimally-working plunker that reproduces the issue:

https://plnkr.co/edit/0qj0wOPrMx8BRTlV6c31?p=preview, this is a standard one from https://angular-ui.github.io/bootstrap/#/datepicker

Version of FF, Angular, UIBS, and Bootstrap

Firefox: 50 (and lower as well) Angular: 1.5.8 UIBS: 2.2.0 Bootstrap: 3.3.7

demns avatar Nov 18 '16 15:11 demns

I think this happens due to the browser trying to be helpful on focus for accessibility reasons. UI Bootstrap focuses the popup on opening to aid in accessibility, but it seems like Firefox is scrolling to the focused element automatically.

I don't think there is anything we can or should do here.

wesleycho avatar Dec 27 '16 10:12 wesleycho