mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-09 14:14:27 +02:00
Solved issue with console input not triggered
This commit is contained in:
parent
e11d691480
commit
0f450f6568
1 changed files with 10 additions and 11 deletions
|
@ -251,11 +251,6 @@ var ModalView = Backbone.View.extend({
|
|||
},
|
||||
|
||||
show: function() {
|
||||
Array.from(document.body.children).forEach(function(child) {
|
||||
if (child.classList.contains('modalView')) return;
|
||||
child.setAttribute('inert', '');
|
||||
});
|
||||
|
||||
this.toggleZ(true);
|
||||
// on reflow, change our class to animate. for whatever
|
||||
// reason if this is done immediately, chrome might combine
|
||||
|
@ -273,12 +268,6 @@ var ModalView = Backbone.View.extend({
|
|||
this.toggleZ(false);
|
||||
}
|
||||
}.bind(this), this.getAnimationTime());
|
||||
|
||||
|
||||
Array.from(document.body.children).forEach(function(child) {
|
||||
if (child.classList.contains('modalView')) return;
|
||||
child.removeAttribute('inert');
|
||||
});
|
||||
},
|
||||
|
||||
getInsideElement: function() {
|
||||
|
@ -290,8 +279,18 @@ var ModalView = Backbone.View.extend({
|
|||
if (this.shown === value) { return; }
|
||||
|
||||
if (value) {
|
||||
Array.from(document.body.children).forEach(function(child) {
|
||||
if (child.classList.contains('modalView')) return;
|
||||
if (!child.hasAttribute('inert')) child.setAttribute('inert', '');
|
||||
});
|
||||
|
||||
this.stealKeyboard();
|
||||
} else {
|
||||
Array.from(document.body.children).forEach(function(child) {
|
||||
if (child.classList.contains('modalView')) return;
|
||||
if (child.hasAttribute('inert')) child.removeAttribute('inert');
|
||||
});
|
||||
|
||||
this.releaseKeyboard();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue