Skip to content

Commit

Permalink
Close after clear (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc authored Jul 10, 2024
1 parent 79b9e9c commit d0096ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions app-typescript/components/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ export class DatePicker extends React.PureComponent<IDatePicker, IState> {
<Button
onClick={() => {
this.props.onChange(null);
if (
this.instance != null
&& typeof this.instance.hideOverlay === 'function'
) {
this.instance.hideOverlay();
}
}}
text='Clear'
data-test-id='clear-button'
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "superdesk-ui-framework",
"version": "3.1.14",
"version": "3.1.15",
"license": "AGPL-3.0",
"repository": {
"type": "git",
Expand Down

0 comments on commit d0096ac

Please sign in to comment.