Skip to content

Commit

Permalink
build with latest updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatiandad committed May 11, 2021
1 parent 0d2d2d7 commit 3caab68
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dist/pep-p.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ define('pep-p', {
// Create a copy of the children and text before we start modifying it.
this.originalChildNodes = Array.from(this.childNodes).map(node => node.cloneNode(true));
this.originalTextContent = this.textContent;
// this.setAttribute('tooltip', this.originalTextContent.trim());
this.setAttribute('tooltip', this.originalTextContent.trim());
this.trimTextContent();
},
disconnected() {
Expand Down Expand Up @@ -80,6 +80,10 @@ define('pep-p', {
this.restoreChildren();
this.trimTextContent();

if (!this.didTrim) {
this.removeAttribute('tooltip');
}

if (this.didTrim) {
this.setAttribute('tooltip', this.originalTextContent.trim());
}
Expand Down

0 comments on commit 3caab68

Please sign in to comment.