Home Ask Login Register

Developers Planet

Your answer is one click away!

Ken Vernaillen February 2016

ng-click/ onclick doesn't work on button in navbar-fixed-bottom in Android

I am building an application with mobile angular ui. When I try to put a button at the bottom of the screen (see example) and bind an ng-click function to the button, I can't click on the button on an android device. In a browser it works. It seems that the click-area is under the button. When I make the .navbar-fixed-bottom position:relative (it's not at the bottom), but then the button works.

Later it seemed that onclick also doesn't work.

<div class="navbar navbar-default navbar-fixed-bottom">
    <div class="container" style="margin-top:5px;">
         <button class="btn btn-primary btn-block" ng-click="start()">

How can I make this work?


Ken Vernaillen February 2016

I fixed it by placing the navbar outside of the app-body.

Post Status

Asked in February 2016
Viewed 3,170 times
Voted 13
Answered 1 times


Leave an answer

Quote of the day: live life