Browse Source

Fix #475 - add space after autocomplete

closed-social-glitch-2
Eugen Rochko 7 years ago
parent
commit
1aae0cfc2c
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      app/assets/javascripts/components/features/account/index.jsx
  2. +1
    -1
      app/assets/javascripts/components/reducers/compose.jsx

+ 2
- 1
app/assets/javascripts/components/features/account/index.jsx View File

@ -43,7 +43,8 @@ const Account = React.createClass({
params: React.PropTypes.object.isRequired,
dispatch: React.PropTypes.func.isRequired,
account: ImmutablePropTypes.map,
me: React.PropTypes.number.isRequired
me: React.PropTypes.number.isRequired,
children: React.PropTypes.node
},
mixins: [PureRenderMixin],

+ 1
- 1
app/assets/javascripts/components/reducers/compose.jsx View File

@ -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());
});

Loading…
Cancel
Save