-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
587f7bd
commit ed3b308
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ed3b308
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #8806
ed3b308
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi yigitfindikli and cetincakiroglu,
there is an error in the new line 607.
It should be
} else if (!this.editable && !this.selectedOption && this.value !== null) {
With your existing code there are problems, if the dropdown already is null or if it is editable.
Best regards,
Achim
ed3b308
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dbk-anick is right - see also #11522.
ed3b308
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dbk-anick @Cito
Thanks for your report, we'll check.
ed3b308
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @cetincakiroglu ,
this change is causing problem in our application, especially when the control value is null. It seems that for it to work the "null" value needs to be inside the "option" of the p-dropdown. Apparently lines "608 and 609" are being executed improperly.
Version: 13.4.1
Problem description: When the formcontrol linked to p-dropdown has a null value, the lines "this.value = null and this.onModelChange(this.value)" are improperly executed, triggering a "valueChanges" event (changing the value to null) of the formControl and marking it as dirty improperly.
Regards