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

Tooltip always visible #4297

Closed
dylanvdmerwe opened this issue Oct 15, 2019 · 3 comments
Closed

Tooltip always visible #4297

dylanvdmerwe opened this issue Oct 15, 2019 · 3 comments
Assignees

Comments

@dylanvdmerwe
Copy link

Reproduction link

https://stackblitz.com/edit/angular-yfkrry?file=src/app/app.component.ts

Steps to reproduce

Set [nzVisible]='false' always shows the tooltip.

What is expected?

There needs to be a bindable way to deactivate a tooltip. Either by setting visible to false or have a new disabled property.

What is actually happening?

The tooltip is always visible and cannot be disabled.

Environment Info
ng-zorro-antd 8.4.0
Browser Chrome
@wzhudev
Copy link
Member

wzhudev commented Oct 15, 2019

Try to set [nzTrigger]="null". Refer to

And I modified your reproduction.

By setting nzVisible, you can only set visibility only at the moment.

Please open a pull request if you feel it necessary to add another property. I am closing this now. Thank you for opening this PR.

@wzhudev wzhudev closed this as completed Oct 16, 2019
@dylanvdmerwe
Copy link
Author

[nzTrigger]="null" works thank you. I feel this needs to potentially be better documented.

@wzhudev
Copy link
Member

wzhudev commented Oct 17, 2019

Yes please check #4298.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants