Skip to content

Commit

Permalink
Fix for tag editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Aug 15, 2022
1 parent 7917d3c commit 9521736
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*
* Squidex Headless CMS
*
Expand Down

0 comments on commit 9521736

Please sign in to comment.