myrta-ui 1.1.64 → 1.1.66

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.
@@ -17910,7 +17910,6 @@ class FormulaEditorComponent {
17910
17910
  }
17911
17911
  onInput(event) {
17912
17912
  const { value, searchText } = this._transformValue(this._modifiedValue(this._inputValue), false);
17913
- // this.updateValue(value);
17914
17913
  this.searchText = searchText;
17915
17914
  this._storeCursorPosition();
17916
17915
  }
@@ -17939,7 +17938,7 @@ class FormulaEditorComponent {
17939
17938
  this._restoreCursorPosition(this.inputElement.nativeElement);
17940
17939
  this._insertPositionText(`{${whiteListItem.sysName}}`);
17941
17940
  setTimeout(() => {
17942
- const { value, visibleValue } = this._transformValue(this._modifiedValue(this._inputValue), false);
17941
+ const { value, visibleValue } = this._transformValue(this._modifiedValue(this._inputValue), true);
17943
17942
  this.updateValue(value);
17944
17943
  this.updateVisibleValue(visibleValue);
17945
17944
  });
@@ -17947,9 +17946,15 @@ class FormulaEditorComponent {
17947
17946
  this.searchText = '';
17948
17947
  }
17949
17948
  updateVisibleValue(insideValue) {
17950
- this.visibleValue = insideValue;
17951
- this._storeCursorPosition();
17952
- this._detector.detectChanges();
17949
+ this.visibleValue = '';
17950
+ setTimeout(() => {
17951
+ this.visibleValue = insideValue;
17952
+ this._storeCursorPosition();
17953
+ });
17954
+ setTimeout(() => {
17955
+ this._detector.detectChanges();
17956
+ this._detector.markForCheck();
17957
+ }, 1000);
17953
17958
  }
17954
17959
  updateValue(insideValue) {
17955
17960
  this.value = insideValue;