jQuery UI dialog button focus

前端 未结 13 2197
时光取名叫无心
时光取名叫无心 2020-12-13 12:08

When a jQuery UI dialog opens, it selects one of the buttons and highlights it or sets focus to it etc... How can I stop this behaviour so that none of the buttons are highl

13条回答
  •  难免孤独
    2020-12-13 13:00

    This is what I usually do, works all the time:

    open: function() {
        $('.ui-dialog button').removeClass('ui-state-focus');
    },
    

提交回复
热议问题