@fw-components/formula-editor 2.0.7-formula-editor.9 → 2.0.7-formula-editor.10

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.
@@ -177,6 +177,10 @@ let FormulaEditor = class FormulaEditor extends LitElement {
177
177
  }
178
178
  }
179
179
  }
180
+ handleFocusOut(e) {
181
+ this._recommendations = null;
182
+ this.requestUpdate();
183
+ }
180
184
  render() {
181
185
  return html `
182
186
  <style>
@@ -190,12 +194,14 @@ let FormulaEditor = class FormulaEditor extends LitElement {
190
194
  autocomplete="off"
191
195
  @input=${this.handleChange}
192
196
  @keydown=${this.handleKeyboardEvents}
197
+ @blur=${this.handleFocusOut}
193
198
  ></div>
194
199
  ${this._recommendations
195
200
  ? html ` <suggestion-menu
196
201
  .recommendations=${this._recommendations}
197
202
  .currentSelection=${this._selectedRecommendation}
198
203
  .onClickRecommendation=${(e) => this.onClickRecommendation(e)}
204
+ @mousedown=${(e) => e.preventDefault()}
199
205
  ></suggestion-menu>`
200
206
  : html ``}
201
207
  <p>${this._calculatedResult}</p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fw-components/formula-editor",
3
- "version": "2.0.7-formula-editor.9",
3
+ "version": "2.0.7-formula-editor.10",
4
4
  "description": "A WYSIWYG type formula editor",
5
5
  "main": "dist/formula-editor/src/formula-builder.js",
6
6
  "publishConfig": {
@@ -25,5 +25,5 @@
25
25
  "@types/big.js": "^6.1.6",
26
26
  "es-dev-server": "^2.1.0"
27
27
  },
28
- "gitHead": "8ec9bb1e89c289c5334db8f99d1a359c731a4375"
28
+ "gitHead": "5466c1c78ac6cd93ffe93d672ea3ea2fd955f4d9"
29
29
  }