@quadrel-enterprise-ui/framework 20.27.4 → 20.27.5

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.
@@ -21231,16 +21231,16 @@ class QdFilterItemFreeTextComponent {
21231
21231
  itemIndex = 0;
21232
21232
  testId;
21233
21233
  enterClick = new EventEmitter();
21234
- item;
21235
- i18n;
21236
21234
  get dataTestId() {
21237
21235
  return this.testId;
21238
21236
  }
21237
+ item;
21238
+ i18n;
21239
+ inputValue = '';
21240
+ _destroyed$ = new Subject();
21239
21241
  get value() {
21240
21242
  return (this.item && this.item.item) || '';
21241
21243
  }
21242
- inputValue = '';
21243
- _destroyed$ = new Subject();
21244
21244
  ngOnInit() {
21245
21245
  this.filterService
21246
21246
  .getCategoryById$(this.filterId, this.categoryIndex)
@@ -21252,6 +21252,8 @@ class QdFilterItemFreeTextComponent {
21252
21252
  .getItemById$(this.filterId, this.categoryIndex, this.itemIndex)
21253
21253
  .pipe(takeUntil$1(this._destroyed$))
21254
21254
  .subscribe(item => {
21255
+ if ((item?.item ?? '') !== this.inputValue)
21256
+ this.inputValue = '';
21255
21257
  this.item = item;
21256
21258
  });
21257
21259
  }