myrta-ui 1.1.31 → 1.1.33

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.
@@ -17498,7 +17498,7 @@ class FormulaEditorComponent {
17498
17498
  return this.inputElement.nativeElement.textContent || '';
17499
17499
  }
17500
17500
  writeValue(outsideValue) {
17501
- if (outsideValue !== null) {
17501
+ if (outsideValue !== null && this.value === '') {
17502
17502
  const { visibleValue } = this._transformValue(this._modifiedValue(outsideValue));
17503
17503
  this.value = outsideValue;
17504
17504
  this.visibleValue = visibleValue;
@@ -17507,7 +17507,7 @@ class FormulaEditorComponent {
17507
17507
  }
17508
17508
  onInput(event) {
17509
17509
  const { value, searchText } = this._transformValue(this._modifiedValue(this._inputValue), false);
17510
- this.updateValue(value);
17510
+ // this.updateValue(value);
17511
17511
  this.searchText = searchText;
17512
17512
  this._storeCursorPosition();
17513
17513
  }
@@ -17663,7 +17663,7 @@ class FormulaEditorComponent {
17663
17663
  });
17664
17664
  }
17665
17665
  clickOut(event) {
17666
- if (!this.eRef.nativeElement.contains(event.target)) {
17666
+ if (!this.eRef.nativeElement.contains(event.target) && this.isFocused) {
17667
17667
  const { visibleValue } = this._transformValue(this._modifiedValue(this._inputValue), true);
17668
17668
  this.updateVisibleValue(visibleValue);
17669
17669
  this.isFocused = false;