allianz / ng-aquila

Angular UI Component library for the Open Insurance Platform
https://allianz.github.io/ng-aquila/
Other
213 stars 38 forks source link

[NxMultiSelectComponent] When form is touched error message is not displayed and nx-formfield is missing 'has-error' class #42

Closed dumitrascuSorin closed 2 years ago

dumitrascuSorin commented 2 years ago

⚡ Reproduction

StackBlitz link to reproduce the issue: https://stackblitz.com/edit/angular-s5wg3k?file=src/app/multi-select-intl-example.html

Steps to reproduce:

  1. Generate a FormGroup with 2 required FormControls.
  2. Register one of the required FormControls to the nx-multi-select component.
  3. Register the other required FormControl to the nx-dropdown component.

📗 Expected Behavior

When the form group is touched, I would expect both form fields to have the has-error class and the error messages to be displayed.

📕 Actual Behavior

Even though both form fields are invalid, the error message is diplayed only for the nx-dropdown but not for the nx-multi-select image

📦 Environment

yd-allianz commented 2 years ago

Hi @dumitrascuSorin thanks for reporting and for the good reproduction. We'll let you know as soon as this is fixed.

yd-allianz commented 2 years ago

Hi @dumitrascuSorin we're happy to announce that this issue is fixed and is going to be available with the next release. Thanks for contributing!