Skip to content

Commit

Permalink
reverted the "unclosable menu prevention" fix
Browse files Browse the repository at this point in the history
because it broke Snap's search box in the project dialog
  • Loading branch information
jmoenig committed Nov 2, 2020
1 parent b5297f3 commit 97557cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions morphic.js
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@

/*global window, HTMLCanvasElement, FileReader, Audio, FileList, Map*/

var morphicVersion = '2020-October-27';
var morphicVersion = '2020-November-02';
var modules = {}; // keep track of additional loaded modules
var useBlurredShadows = true;

Expand Down Expand Up @@ -8400,8 +8400,7 @@ MenuMorph.prototype.destroy = function () {
if (this.hasFocus) {
this.world.keyboardFocus = null;
}
const isActiveMenu = this.world.activeMenu === this;
if (!this.isListContents && isActiveMenu) {
if (!this.isListContents) {
this.world.activeMenu = null;
}
MenuMorph.uber.destroy.call(this);
Expand Down

0 comments on commit 97557cc

Please sign in to comment.