Added workaround to add tags on blur on tags input which allows tags to be added on Android

This commit is contained in:
Alejandro Celaya 2018-08-12 19:07:42 +02:00
parent f8eb5fb022
commit adec759579
2 changed files with 3 additions and 3 deletions

View file

@ -71,8 +71,9 @@ export class CreateShortUrl extends React.Component {
<TagsInput <TagsInput
value={this.state.tags} value={this.state.tags}
onChange={changeTags} onChange={changeTags}
onlyUnique
inputProps={{ placeholder: 'Add tags to the URL' }} inputProps={{ placeholder: 'Add tags to the URL' }}
onlyUnique
addOnBlur // FIXME Workaround to be able to add tags on Android
/> />
</div> </div>

View file

@ -1,5 +1,4 @@
import ShlinkApiClient from '../../api/ShlinkApiClient'; import ShlinkApiClient from '../../api/ShlinkApiClient';
import { curry } from 'ramda';
const LIST_SHORT_URLS_START = 'shlink/shortUrlsList/LIST_SHORT_URLS_START'; const LIST_SHORT_URLS_START = 'shlink/shortUrlsList/LIST_SHORT_URLS_START';
const LIST_SHORT_URLS_ERROR = 'shlink/shortUrlsList/LIST_SHORT_URLS_ERROR'; const LIST_SHORT_URLS_ERROR = 'shlink/shortUrlsList/LIST_SHORT_URLS_ERROR';
@ -41,4 +40,4 @@ export const _listShortUrls = (ShlinkApiClient, params = {}) => async dispatch =
dispatch({ type: LIST_SHORT_URLS_ERROR, params }); dispatch({ type: LIST_SHORT_URLS_ERROR, params });
} }
}; };
export const listShortUrls = curry(_listShortUrls)(ShlinkApiClient); export const listShortUrls = (params = {}) => _listShortUrls(ShlinkApiClient, params);