diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-20 21:39:41 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-20 21:39:41 +0100 |
commit | 1aae0cfc2c3a8c9f1748ae0f359ff00672e89bf1 (patch) | |
tree | 7baff9a8e6c63fe2b1dc13cfad0e0bd6d3f4a137 /app/assets/javascripts/components/reducers/compose.jsx | |
parent | 9bd3b11cfb7fbfc42f0ebfecf238e037d44ca39d (diff) |
Fix #475 - add space after autocomplete
Diffstat (limited to 'app/assets/javascripts/components/reducers/compose.jsx')
-rw-r--r-- | app/assets/javascripts/components/reducers/compose.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/reducers/compose.jsx b/app/assets/javascripts/components/reducers/compose.jsx index 5f309452b..2df50c45b 100644 --- a/app/assets/javascripts/components/reducers/compose.jsx +++ b/app/assets/javascripts/components/reducers/compose.jsx @@ -82,7 +82,7 @@ function removeMedia(state, mediaId) { const insertSuggestion = (state, position, token, completion) => { return state.withMutations(map => { - map.update('text', oldText => `${oldText.slice(0, position)}${completion}${oldText.slice(position + token.length)}`); + map.update('text', oldText => `${oldText.slice(0, position)}${completion} ${oldText.slice(position + token.length)}`); map.set('suggestion_token', null); map.update('suggestions', Immutable.List(), list => list.clear()); }); |