Make popover title required rather than description
Browse files- src/core/popover.js +1 -1
- src/index.js +1 -1
src/core/popover.js
CHANGED
|
@@ -120,7 +120,7 @@ export default class Popover extends Element {
|
|
| 120 |
|
| 121 |
// Set the title and descriptions
|
| 122 |
this.titleNode.innerHTML = this.options.title;
|
| 123 |
-
this.descriptionNode.innerHTML = this.options.description;
|
| 124 |
|
| 125 |
this.renderButtons();
|
| 126 |
|
|
|
|
| 120 |
|
| 121 |
// Set the title and descriptions
|
| 122 |
this.titleNode.innerHTML = this.options.title;
|
| 123 |
+
this.descriptionNode.innerHTML = this.options.description || '';
|
| 124 |
|
| 125 |
this.renderButtons();
|
| 126 |
|
src/index.js
CHANGED
|
@@ -295,7 +295,7 @@ export default class Driver {
|
|
| 295 |
}
|
| 296 |
|
| 297 |
let popover = null;
|
| 298 |
-
if (elementOptions.popover && elementOptions.popover.
|
| 299 |
const popoverOptions = {
|
| 300 |
...this.options,
|
| 301 |
...elementOptions.popover,
|
|
|
|
| 295 |
}
|
| 296 |
|
| 297 |
let popover = null;
|
| 298 |
+
if (elementOptions.popover && elementOptions.popover.title) {
|
| 299 |
const popoverOptions = {
|
| 300 |
...this.options,
|
| 301 |
...elementOptions.popover,
|