kamrify commited on
Commit
7b286e7
·
1 Parent(s): 4aa5f99

Make popover title required rather than description

Browse files
Files changed (2) hide show
  1. src/core/popover.js +1 -1
  2. 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.description) {
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,