mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-09 22:24:26 +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() {
|
show: function() {
|
||||||
Array.from(document.body.children).forEach(function(child) {
|
|
||||||
if (child.classList.contains('modalView')) return;
|
|
||||||
child.setAttribute('inert', '');
|
|
||||||
});
|
|
||||||
|
|
||||||
this.toggleZ(true);
|
this.toggleZ(true);
|
||||||
// on reflow, change our class to animate. for whatever
|
// on reflow, change our class to animate. for whatever
|
||||||
// reason if this is done immediately, chrome might combine
|
// reason if this is done immediately, chrome might combine
|
||||||
|
@ -273,12 +268,6 @@ var ModalView = Backbone.View.extend({
|
||||||
this.toggleZ(false);
|
this.toggleZ(false);
|
||||||
}
|
}
|
||||||
}.bind(this), this.getAnimationTime());
|
}.bind(this), this.getAnimationTime());
|
||||||
|
|
||||||
|
|
||||||
Array.from(document.body.children).forEach(function(child) {
|
|
||||||
if (child.classList.contains('modalView')) return;
|
|
||||||
child.removeAttribute('inert');
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getInsideElement: function() {
|
getInsideElement: function() {
|
||||||
|
@ -290,8 +279,18 @@ var ModalView = Backbone.View.extend({
|
||||||
if (this.shown === value) { return; }
|
if (this.shown === value) { return; }
|
||||||
|
|
||||||
if (value) {
|
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();
|
this.stealKeyboard();
|
||||||
} else {
|
} else {
|
||||||
|
Array.from(document.body.children).forEach(function(child) {
|
||||||
|
if (child.classList.contains('modalView')) return;
|
||||||
|
if (child.hasAttribute('inert')) child.removeAttribute('inert');
|
||||||
|
});
|
||||||
|
|
||||||
this.releaseKeyboard();
|
this.releaseKeyboard();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue