ng-bootstrap / ng-bootstrap/ng-bootstrap

Tooltip > disableTooltip does not close the tooltip when changed

Open
#4,873 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
8.2k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

When using disableTooltip on the Tooltip component, if the tooltip is visible, it does not automatically hide the tooltip. This seems conter-intuitive.

The only workaround, is to instead, set ngbTooltip to null when we really want it disabled, as it will remove the tooltip and make sure it cannot be open again

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Angular Tooltip component and the handling of its disableTooltip input. Reproduce the case where a visible tooltip is disabled, then verify that changing the input hides it immediately and that the existing tooltip behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.