Updated from tootsuite
This commit is contained in:
commit
c727eae441
34 files changed
+221
-29
No files matched your search
@@ -140,7 +140,7 @@ export default class ComposeForm extends ImmutablePureComponent {
|
||||
|
||||
handleEmojiPick = (data) => {
|
||||
const position = this.autosuggestTextarea.textarea.selectionStart;
|
||||
const emojiChar = String.fromCodePoint(parseInt(data.unicode, 16));
|
||||
const emojiChar = data.unicode.split('-').map(code => String.fromCodePoint(parseInt(code, 16))).join('');
|
||||
this._restoreCaret = position + emojiChar.length + 1;
|
||||
this.props.onPickEmoji(position, data);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user