Merge branch 'master' into VM/RED-2614

This commit is contained in:
Valentin 2022-01-17 10:39:22 +02:00
commit b234ac1020
2 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,9 @@
<div [style.max-width]="computedWidth" [style.width]="computedWidth" class="iqser-input-group">
<form (submit)="executeAction(null)" [style.max-width]="computedWidth" [style.width]="computedWidth" class="iqser-input-group">
<input
[(ngModel)]="value"
(ngModelChange)="valueChange.emit($event)"
[(ngModel)]="value"
[autocomplete]="autocomplete"
[ngModelOptions]="{ standalone: true }"
[placeholder]="placeholder"
class="with-icon mt-0"
type="text"
@ -19,7 +20,6 @@
*ngIf="!isSearch"
[disabled]="!hasContent"
[icon]="icon"
[isSubmit]="true"
[size]="25"
></iqser-circle-button>
</div>
</form>

View File

@ -27,7 +27,7 @@ export class InputWithActionComponent {
}
get isSearch(): boolean {
return this.action.observers.length === 0;
return !this.icon;
}
reset(): void {
@ -37,7 +37,7 @@ export class InputWithActionComponent {
}
executeAction($event: MouseEvent): void {
$event.stopPropagation();
$event?.stopPropagation();
if (this.hasContent) {
this.action.emit(this.value);