JQuery Mobile: how to not display the button focus halo when a button is clicked?

后端 未结 4 1758
夕颜
夕颜 2021-01-13 15:02

I have buttons in my web app using jQuery Mobile.

When clicked the buttons have the ui-focus class added which displays a blue halo around buttons. The class stays

4条回答
  •  青春惊慌失措
    2021-01-13 15:15

    I have found that the best way to do this is to give focus back to the page after your buttons are clicked.

    $('yourButtons').click(function(){
        //Do some important stuff
        // ....
    
        $.mobile.activePage.focus();
    });
    

提交回复
热议问题