@difizen/libro-search 0.1.35 → 0.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -258,7 +258,7 @@ export var LibroSearchView = (_dec = transient(), _dec2 = view('libro-search-vie
258
258
  _this.toDispose.push(_this.libro.model.onCommandModeChanged(function (mode) {
259
259
  if (mode) {
260
260
  setTimeout(function () {
261
- if (_this.hasFocus === false) {
261
+ if (_this.hasFocus === false && _this.searchVisible) {
262
262
  _this.hide(false);
263
263
  }
264
264
  }, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-search",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro",
@@ -36,9 +36,9 @@
36
36
  "@difizen/mana-app": "latest",
37
37
  "@difizen/mana-l10n": "latest",
38
38
  "@ant-design/icons": "^5.1.0",
39
- "@difizen/libro-common": "^0.1.35",
40
- "@difizen/libro-core": "^0.1.35",
41
- "@difizen/libro-code-editor": "^0.1.35",
39
+ "@difizen/libro-common": "^0.1.37",
40
+ "@difizen/libro-core": "^0.1.37",
41
+ "@difizen/libro-code-editor": "^0.1.37",
42
42
  "@types/lodash.debounce": "^4.0.7",
43
43
  "classnames": "^2.3.2",
44
44
  "lodash.debounce": "^4.0.8",
@@ -288,7 +288,7 @@ export class LibroSearchView extends BaseView {
288
288
  this.libro.model.onCommandModeChanged((mode) => {
289
289
  if (mode) {
290
290
  setTimeout(() => {
291
- if (this.hasFocus === false) {
291
+ if (this.hasFocus === false && this.searchVisible) {
292
292
  this.hide(false);
293
293
  }
294
294
  }, 0);