Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant