You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
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>