Skip to content

Commit 6bd2494

Browse files
committed
Make popover title required rather than description
1 parent 3cc0edc commit 6bd2494

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/popover.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default class Popover extends Element {
120120

121121
// Set the title and descriptions
122122
this.titleNode.innerHTML = this.options.title;
123-
this.descriptionNode.innerHTML = this.options.description;
123+
this.descriptionNode.innerHTML = this.options.description || '';
124124

125125
this.renderButtons();
126126

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export default class Driver {
295295
}
296296

297297
let popover = null;
298-
if (elementOptions.popover && elementOptions.popover.description) {
298+
if (elementOptions.popover && elementOptions.popover.title) {
299299
const popoverOptions = {
300300
...this.options,
301301
...elementOptions.popover,

0 commit comments

Comments
 (0)