Closing screenshot dialog prevent input elements to get focus

This commit is contained in:
Frederic Guillot
2017-01-14 17:06:17 -05:00
parent 8ccdea0069
commit 0ed13c01f9
4 changed files with 12 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -109,6 +109,10 @@ KB.component('screenshot', function (containerElement) {
initialize();
}
KB.on('modal.close', function () {
destroy();
});
this.render = function () {
inputElement = KB.dom('input')
.attr('type', 'hidden')

View File

@@ -10,7 +10,7 @@
}
function onCloseButtonClick() {
destroy();
KB.trigger('modal.close');
}
function onFormSubmit() {