mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-05-04 02:32:58 +03:00
Updated DateInput to be clearable
This commit is contained in:
parent
6f38538dea
commit
3821735a89
4 changed files with 23 additions and 3 deletions
src/short-urls
|
@ -48,6 +48,7 @@ export class CreateShortUrl extends React.Component {
|
|||
selected={this.state[id]}
|
||||
placeholderText={placeholder}
|
||||
onChange={date => this.setState({ [id]: date })}
|
||||
isClearable
|
||||
{...props}
|
||||
/>;
|
||||
const formatDate = date => isNil(date) ? date : date.format();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue