mirror of https://github.com/xwiki-labs/cryptpad
Merge pull request #1618 from cryptpad/Ctrl+E-modal-fixes
Remove focus from disabled elements on modals
This commit is contained in:
commit
daa367672d
|
@ -2513,7 +2513,10 @@ define([
|
|||
var next = function () {
|
||||
selected = ++selected % types.length;
|
||||
$container.find('.cp-icons-element-selected').removeClass('cp-icons-element-selected');
|
||||
$container.find('#cp-newpad-icons-'+selected).addClass('cp-icons-element-selected');
|
||||
let element = $container.find('#cp-newpad-icons-'+selected).addClass('cp-icons-element-selected');
|
||||
if (element.hasClass('cp-app-disabled')) {
|
||||
next();
|
||||
}
|
||||
};
|
||||
|
||||
$modal.off('keydown');
|
||||
|
|
Loading…
Reference in New Issue