Skip to content

Commit

Permalink
fix: fixes a bug with date picker
Browse files Browse the repository at this point in the history
  • Loading branch information
AssisrMatheus committed Dec 13, 2022
1 parent d6a69df commit 8d7a315
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

## [9.2.2] 2022-12-13

### Fixed

- Fixes issue where changing year on date picker doesn't update calendar tooltip

## [9.2.1] 2022-12-08

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@perimetre/ui",
"description": "A component library made by @perimetre",
"version": "9.2.1",
"version": "9.2.2",
"repository": {
"type": "git",
"url": "git+https://github.com/perimetre/ui.git"
Expand Down
2 changes: 2 additions & 0 deletions src/components/DatePickerInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ export const DatePickerInput: React.FC<DatePickerProps> = ({
...buttonProps,
ref: buttonRef
}}
onHide={state.close}
onDestroy={() => state?.close && state.close()}
>
<FontAwesomeIcon className="h-5 w-5" icon={faCalendar} />
</Tooltip>
Expand Down
2 changes: 2 additions & 0 deletions src/components/DateRangePickerInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ export const DateRangePickerInput: React.FC<DateRangePickerProps> = ({
...buttonProps,
ref: buttonRef
}}
onHide={state.close}
onDestroy={() => state?.close && state.close()}
>
<FontAwesomeIcon className="h-5 w-5" icon={faCalendar} />
</Tooltip>
Expand Down

0 comments on commit 8d7a315

Please sign in to comment.