angular-moment-picker icon indicating copy to clipboard operation
angular-moment-picker copied to clipboard

scrolling in a modal

Open kinoli opened this issue 8 years ago • 5 comments

I have the picker show up under an input field inside a modal that scrolls. Since it is attached to the body and not the modal, when you scroll, the picker remains fixed and becomes disconnected to the input field it came from. Is there any way to attach the picker to the dom object that created it?

kinoli avatar May 24 '17 13:05 kinoli

Perhaps there's a way to just close the datepicker if the person scrolls. Any way to do that?

kinoli avatar May 24 '17 21:05 kinoli

i have the same problem using angular js uibmodel.

gauravBrain avatar Aug 21 '17 12:08 gauravBrain

Is there any update on this ?

vikobg avatar Nov 20 '17 11:11 vikobg

I am having the same issue. using v0.10.2.

zealash avatar Jul 19 '18 19:07 zealash

Found a workaround here.

$('.modal').on('scroll', function () { if ($('.moment-picker')[0]) { angular.element('.header-view').scope().$parent.view.position(); } });

ellencheung39 avatar Apr 02 '19 07:04 ellencheung39