【发布时间】:2018-09-19 07:32:45
【问题描述】:
我正在使用primeng 5.2.4,我正在尝试这个:
<p-dropdown [options]="months" [(ngModel)]="selectedMonth"
(change)="selectMonth()"></p-dropdown>
当页面首次加载时调用 selectMonth 方法,但不会在下拉列表中的后续选择时调用。 If I change this to a click event it works (but I get one event when the dropdown is clicked and another when the value is chosen).
关于我可能做错了什么有什么想法吗?我回滚到 4.3.0 并看到相同的行为。
谢谢!
【问题讨论】: