Added tsx files to grunt watch.

Fixed minor bug in conversation view.
pull/117/head
Mikunj 6 years ago
parent 81ce63c9a4
commit cbb62f4a71

@ -176,7 +176,7 @@ module.exports = grunt => {
tasks: ['sass'], tasks: ['sass'],
}, },
transpile: { transpile: {
files: ['./ts/**/*.ts'], files: ['./ts/**/*.ts','./ts/**/*.tsx'],
tasks: ['exec:transpile'], tasks: ['exec:transpile'],
}, },
}, },

@ -1520,7 +1520,7 @@
const colons = `:${emojiData[e.index].short_name}:`; const colons = `:${emojiData[e.index].short_name}:`;
const textarea = this.$messageField[0]; const textarea = this.$messageField[0];
if (textarea.selectionStart || textarea.selectionStart === '0') { if (textarea.selectionStart || textarea.selectionStart === 0) {
const startPos = textarea.selectionStart; const startPos = textarea.selectionStart;
const endPos = textarea.selectionEnd; const endPos = textarea.selectionEnd;

Loading…
Cancel
Save