[Common] Hide comment popover when switch to preview comment mode

This commit is contained in:
Julia Radzhabova 2019-02-13 13:33:28 +03:00
parent 407ba1fcca
commit 164378dfaa

View file

@ -1483,7 +1483,7 @@ define([
this.setMode(this.mode); this.setMode(this.mode);
this.updateComments(true); this.updateComments(true);
if (this.getPopover()) if (this.getPopover())
this.getPopover().update(true); mode ? this.getPopover().hide() : this.getPopover().update(true);
}, },
clearCollections: function() { clearCollections: function() {