Skip to content

Commit

Permalink
[Backport 4.4-7.16] Fix timepicker close (#5343)
Browse files Browse the repository at this point in the history
Fix timepicker close (#5341)

* Fix timepicker close

* Add changelog

* Update CHANGELOG.md

(cherry picked from commit a24a1b7)

Co-authored-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and yenienserrano committed Mar 30, 2023
1 parent 8069d0f commit 56fdcc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All notable changes to the Wazuh app project will be documented in this file.
### Fixed

- Fixed the `Anomaly and malware detection` link. [#5329](https://github.com/wazuh/wazuh-kibana-app/pull/5329)
- Fixed the problem that did not allow closing the time picker when the button was clicked again in `Agents` and `Management/Statistics`. [#5341](https://github.com/wazuh/wazuh-kibana-app/pull/5341)

## Wazuh v4.4.0 - Kibana 7.10.2, 7.16.x, 7.17.x - Revision 06

Expand Down
6 changes: 3 additions & 3 deletions public/components/wz-date-picker/components/condensed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export function CondensedPicker({ ranges, onTimeChange }) {
return result;
}

const button = (<EuiButtonEmpty
onClick={() => setIsOpen(true)}
const button = (<EuiButtonEmpty
onClick={() => setIsOpen(!isOpen)}
iconType="arrowDown"
iconSide="right">
{!!customRange
Expand Down Expand Up @@ -78,4 +78,4 @@ export function CondensedPicker({ ranges, onTimeChange }) {
</EuiPopover>
)

}
}

0 comments on commit 56fdcc7

Please sign in to comment.