Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

tooltip: does not take one time binding into account and sets watcher #9958

Open
@david-gang

Description

@david-gang

Actual Behavior:

  • What is the issue? *
    tooltip sets up watcher even if we have one time binding.
  • What is the expected behavior?
    tooltip should set up watchers only if we don't have one time binding.

CodePen (or steps to reproduce the issue): *

  • CodePen Demo which shows your issue:
  • Details:

Given this html:

        <md-tooltip md-delay="400">
            {{::(mylabel |translate)}}"
        </md-tooltip>

The tooltip.js has the following code:

      if (element.text().indexOf($interpolate.startSymbol()) > -1) {
        scope.$watch(function() {
          return element.text().trim();
        }, addAriaLabel);
      }

We should somehow add the exception that it is not one time binding.

Angular Versions: *

  • Angular Version: 1.5.8
  • Angular Material Version: 1.1.0

Additional Information:

  • Browser Type: *
  • Browser Version: *
  • OS: *
  • Stack Traces:

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4: minorMinor issues. May not be fixed without community contributions.needs: demoA CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issuetype: performanceThis issue is related to performance

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions