Skip to content

Commit

Permalink
fix(select): campo reseta valor para nulo usando formulário reativo
Browse files Browse the repository at this point in the history
campo reseta valor para nulo usando formulário reativo.

Fixes DTHFUI-8377
  • Loading branch information
anliben committed Mar 11, 2024
1 parent 1dd5ac9 commit f40b438
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ export class PoSelectComponent extends PoFieldValidateModel<any> implements OnCh
this.selectedValue = optionFound[this.fieldValue];
this.displayValue = optionFound[this.fieldLabel];
} else if (validValue(this.selectedValue)) {
this.selectElement.nativeElement.value = undefined;
this.updateModel(undefined);
this.selectedValue = undefined;
this.displayValue = undefined;
this.selectElement.nativeElement.value = null;
this.updateModel(null);
this.selectedValue = null;
this.displayValue = null;
}

this.modelValue = value;
Expand Down

0 comments on commit f40b438

Please sign in to comment.