@fw-components/formula-editor 2.3.2-formula-editor-regex-fix.0 → 2.3.2-formula-editor-regex-fix.2
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.
|
@@ -49,10 +49,13 @@ let FormulaEditor = class FormulaEditor extends LitElement {
|
|
|
49
49
|
this.parseInput();
|
|
50
50
|
}
|
|
51
51
|
_adjustTextAreaHeight() {
|
|
52
|
-
|
|
52
|
+
requestAnimationFrame(() => {
|
|
53
|
+
if (!this.editor)
|
|
54
|
+
return;
|
|
53
55
|
this.editor.style.height = "var(--fe-height, 30px)";
|
|
54
|
-
|
|
55
|
-
this.editor.style.height =
|
|
56
|
+
const newHeight = this.editor.scrollHeight;
|
|
57
|
+
this.editor.style.height = `${newHeight + 5}px`;
|
|
58
|
+
});
|
|
56
59
|
}
|
|
57
60
|
/**
|
|
58
61
|
* @param recommendation The recommendation which needs to be inserted
|
|
@@ -109,7 +112,7 @@ let FormulaEditor = class FormulaEditor extends LitElement {
|
|
|
109
112
|
if (event.code === "Tab") {
|
|
110
113
|
event.preventDefault();
|
|
111
114
|
if (this.recommendations?.length === 1) {
|
|
112
|
-
this.suggestionMenu.handleRecommendationSelect();
|
|
115
|
+
this.suggestionMenu.handleRecommendationSelect(0);
|
|
113
116
|
}
|
|
114
117
|
else {
|
|
115
118
|
const direction = event.shiftKey ? "up" : "down";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fw-components/formula-editor",
|
|
3
|
-
"version": "2.3.2-formula-editor-regex-fix.
|
|
3
|
+
"version": "2.3.2-formula-editor-regex-fix.2",
|
|
4
4
|
"description": "A WYSIWYG type formula editor",
|
|
5
5
|
"main": "dist/formula-editor/src/formula-editor.js",
|
|
6
6
|
"exports": {
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"@types/big.js": "^6.1.6",
|
|
32
32
|
"es-dev-server": "^2.1.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "fb17b066967ce635a10d7b4da333c9c35f11602c"
|
|
35
35
|
}
|