Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[next] mention: Cannot read property 'onInput' of undefined #3629

Closed
cipchk opened this issue Jun 22, 2019 · 0 comments · Fixed by #3632
Closed

[next] mention: Cannot read property 'onInput' of undefined #3629

cipchk opened this issue Jun 22, 2019 · 0 comments · Fixed by #3632

Comments

@cipchk
Copy link
Member

cipchk commented Jun 22, 2019

重现步骤

stackblitz 无法加载 next 版本,无法提供

部分模板代码:

<nz-mention #mentions [nzSuggestions]="data">
    <input *ngIf="a === 'input'" nzMentionTrigger nz-input [(ngModel)]="value"/>

    <textarea *ngIf="a === 'textarea'" nzMentionTrigger nz-input [(ngModel)]="value"></textarea>
</nz-mention>

应该是 trigger 设置了 { static: true } 倒置,根据 angular.io 建议应该使用 { static: false } 可以更好的处理需要 *ngIf*ngFor 的问题。

hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Jun 24, 2019
vthinkxie pushed a commit that referenced this issue Jun 26, 2019
* fix(module:mention): fix cannot to switch trigger

close #3629

* test(module:mention): add test

* docs(module:mention): fix API
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this issue Apr 9, 2020
* fix(module:mention): fix cannot to switch trigger

close NG-ZORRO#3629

* test(module:mention): add test

* docs(module:mention): fix API
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
* fix(module:mention): fix cannot to switch trigger

close NG-ZORRO#3629

* test(module:mention): add test

* docs(module:mention): fix API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants