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

Empty tooltip populated dynamically is not formatted correctly #149

Open
1 of 8 tasks
BrianPopeck opened this issue Jun 21, 2019 · 0 comments
Open
1 of 8 tasks

Empty tooltip populated dynamically is not formatted correctly #149

BrianPopeck opened this issue Jun 21, 2019 · 0 comments

Comments

@BrianPopeck
Copy link

Description

A 'paper-tooltip' element whose textContent is dynamically changed from empty to nonempty does not display correctly. The text is not formatted and is displayed on screen regardless of the cursor position.

Expected outcome

The dynamically populated tooltip looks identical to a static tooltip.

Actual outcome

Incorrect formatting.

<button id="refreshBtn">Refresh</button>
<paper-tooltip id="refreshTooltip" for="refreshBtn"></paper-tooltip>

<script>
    document.getElementById("refreshBtn").addEventListener("click", function() {
        let tooltip = document.getElementById("refreshTooltip");
        tooltip.textContent = "some text after refresh";
    });
</script>

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant