Skip to content

Cat-angular: *catTooltip doesn't work good with dynamic content #799

Description

@ianovalena

Describe the bug
When the tooltip can be dynamically shown or hidden, the <cat-tooltip> component works well, but the *catTooltip directive can be hidden when it should appear

To Reproduce
Steps to reproduce the behavior:

  1. Add code like this, where tooltipVisible is initially false, but then becomes true
<cat-tooltip [content]="tooltipVisible() ? content() : ''">
  <p>
    {{ content() }}
  </p>
</cat-tooltip>

<p *catTooltip="tooltipVisible() ? content() : ''">
  {{ content() }}
</p>
  1. Test tooltips

Expected behavior
*catTooltip works the same as <cat-tooltip>

Screenshots

screen-capture.7.webm

Desktop

  • OS: MacOS
  • Browser Chrome
  • Version 13.0.0

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions