From 306257686c2840bf22e79d2497257ca2a6a04c7e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Feb 2025 15:51:31 +0100 Subject: [PATCH] Fix select search input --- .../shared/shared-forms/select/select-options.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/app/shared/shared-forms/select/select-options.component.ts b/client/src/app/shared/shared-forms/select/select-options.component.ts index e7a8fbf9fad..719eb6c8301 100644 --- a/client/src/app/shared/shared-forms/select/select-options.component.ts +++ b/client/src/app/shared/shared-forms/select/select-options.component.ts @@ -67,8 +67,11 @@ export class SelectOptionsComponent implements AfterContentInit, ControlValueAcc // Allow plugins to update our value @HostListener('change', [ '$event.target' ]) - handleChange (event: any) { - this.writeValue(event.value) + handleChange (target: HTMLInputElement) { + // Prevent the primeng search input to out value + if (target.role === 'searchbox') return + + this.writeValue(target.value) this.onModelChange() }