提交 6bd2494f 编写于 作者: K Kamran Ahmed

Make popover title required rather than description

上级 3cc0edc0
......@@ -120,7 +120,7 @@ export default class Popover extends Element {
// Set the title and descriptions
this.titleNode.innerHTML = this.options.title;
this.descriptionNode.innerHTML = this.options.description;
this.descriptionNode.innerHTML = this.options.description || '';
this.renderButtons();
......
......@@ -295,7 +295,7 @@ export default class Driver {
}
let popover = null;
if (elementOptions.popover && elementOptions.popover.description) {
if (elementOptions.popover && elementOptions.popover.title) {
const popoverOptions = {
...this.options,
...elementOptions.popover,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册