diff options
author | GeoSot <geo.sotis@gmail.com> | 2021-08-03 11:59:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-03 11:59:33 +0300 |
commit | a6a2d1e2df4f97486d1715a709f40f85193c4ef6 (patch) | |
tree | fc73eb520b8c4c28e5801cef0820e062d96ed115 /js/src/popover.js | |
parent | 23fd488c380c347a3d0121a49b6285bdd65418a2 (diff) |
Regression on tooltip template creation process. (#34628)
* Regression on tooltip template creation process.
* check if template content does not exist, or given argument is empty
* call `setContent()` once.
Diffstat (limited to 'js/src/popover.js')
-rw-r--r-- | js/src/popover.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/js/src/popover.js b/js/src/popover.js index 15deaafe23..dbd67558f8 100644 --- a/js/src/popover.js +++ b/js/src/popover.js @@ -84,9 +84,7 @@ class Popover extends Tooltip { return this.getTitle() || this._getContent() } - setContent() { - const tip = this.getTipElement() - + setContent(tip) { this._sanitizeAndSetContent(tip, this.getTitle(), SELECTOR_TITLE) this._sanitizeAndSetContent(tip, this._getContent(), SELECTOR_CONTENT) } |