Skip to content

Commit

Permalink
Build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Humphreys committed Mar 6, 2020
1 parent fdb1d43 commit 7f1c356
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion dist/tribute.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,8 @@ class Tribute {
}

static defaultSelectTemplate(item) {
if (typeof item === "undefined") return "@" + this.current.mentionText;
if (typeof item === "undefined")
return `${this.current.collection.trigger}${this.current.mentionText}`;
if (this.range.isContentEditable(this.current.element)) {
return (
'<span class="tribute-mention">' +
Expand Down
2 changes: 1 addition & 1 deletion dist/tribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -1815,7 +1815,7 @@
}], [{
key: "defaultSelectTemplate",
value: function defaultSelectTemplate(item) {
if (typeof item === "undefined") return "@" + this.current.mentionText;
if (typeof item === "undefined") return "".concat(this.current.collection.trigger).concat(this.current.mentionText);

if (this.range.isContentEditable(this.current.element)) {
return '<span class="tribute-mention">' + (this.current.collection.trigger + item.original[this.current.collection.fillAttr]) + "</span>";
Expand Down
2 changes: 1 addition & 1 deletion dist/tribute.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tribute.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/tribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -1815,7 +1815,7 @@
}], [{
key: "defaultSelectTemplate",
value: function defaultSelectTemplate(item) {
if (typeof item === "undefined") return "@" + this.current.mentionText;
if (typeof item === "undefined") return "".concat(this.current.collection.trigger).concat(this.current.mentionText);

if (this.range.isContentEditable(this.current.element)) {
return '<span class="tribute-mention">' + (this.current.collection.trigger + item.original[this.current.collection.fillAttr]) + "</span>";
Expand Down

0 comments on commit 7f1c356

Please sign in to comment.