Browse Source

Fix for tag editor.

release/6.x 6.14.0
Sebastian 3 years ago
parent
commit
95217362ae
  1. 8
      CHANGELOG.md
  2. 8
      frontend/src/app/framework/angular/forms/editors/tag-editor.component.ts
  3. 1
      frontend/src/app/framework/angular/forms/editors/tag-editor.stories.ts

8
CHANGELOG.md

@ -3,9 +3,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [6.14.0] - 200-08-15
### Fixed
* **UI**: Fixes the tag editor.
## [6.13.0] - 200-08-02
### Fkxed
### Fixed
* **UI**: Fixes the rendering of reference lists.

8
frontend/src/app/framework/angular/forms/editors/tag-editor.component.ts

@ -244,12 +244,16 @@ export class TagEditorComponent extends StatefulControlComponent<State, Readonly
}
public resetSize() {
if (!this.inputElement?.nativeElement) {
return;
}
const textValue = this.inputElement.nativeElement.value;
const widthText = this.textMeasurer.getTextSize(textValue);
const widthTextValue = this.textMeasurer.getTextSize(textValue);
const widthPlaceholder = this.textMeasurer.getTextSize(this.placeholder);
const width = Math.max(widthText, widthPlaceholder);
const width = Math.max(widthTextValue, widthPlaceholder);
if (width < 0) {
return;

1
frontend/src/app/framework/angular/forms/editors/tag-editor.stories.ts

@ -1,3 +1,4 @@
/*
* Squidex Headless CMS
*

Loading…
Cancel
Save