-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #11526 - Dropdown value not set properly when options come late…
…r than value
- Loading branch information
1 parent
8d42ecc
commit d2c3db6
Showing
1 changed file
with
7 additions
and
4 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
d2c3db6
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 @mertsincan ,
There seems to be a problem with this implementation. When the formcontrol linked to the 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.
Please see the second comment of this thread: ed3b308.
To resolve this, we had to temporarily revert to version 13.3.3.
Regards
d2c3db6
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 @LucasBortolazzo,
Thanks a lot for the feedback! Could you please attach a sample stackblitz link for us to replicate?
d2c3db6
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 @mertsincan ,
yes.. I'll try to reproduce it in a new application and then I'll send the stackblitz link.
Thanks.
d2c3db6
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, this behaviour is currently tracked by the issue #11559