Menu

#48 scroll vanishes after close

closed
nobody
None
2015-03-20
2015-03-08
Anonymous
No

Originally created by: chriship

Hi,

I am using a $timeout to automatically close a modal after 1000 milliseconds. But the scroll bar does not come back into action after this. If I close by clicking on the close button (or anywhere other than the modal) then the scroll bar comes back fine. I have tested this on safari and firefox (on OS X).

I am using the following controller:

app.controller('YesNoController', ['$scope', 'title', 'close', '$timeout', function($scope, title, close, $timeout) {

$scope.title = title;

$timeout( function(){ 
    close('yes', 500); // close, but give 500ms for bootstrap to animate
}, 1000);

$scope.close = function(result) {
close(result, 500); // close, but give 500ms for bootstrap to animate
};

}]);

Discussion

  • Anonymous

    Anonymous - 2015-03-10

    Originally posted by: siready

    You have to properly close bootstrap modal. Please see [#46].

     

    Related

    Tickets: #46

  • Anonymous

    Anonymous - 2015-03-20

    Originally posted by: dwmkerr

    as mentioned by @siready, also see the FAQ under 'How do I close a Bootstrap modal manually?'

     
  • Anonymous

    Anonymous - 2015-03-20

    Ticket changed by: dwmkerr

    • status: open --> closed
     

Log in to post a comment.