diff --git a/CHANGELOG.md b/CHANGELOG.md index fce2925d2e..aa7fa8f897 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Fix Attachment `styles` prop typing @levithomason ([#299](https://github.com/stardust-ui/react/pull/299)) - Fix generation of `key` for the `Accordion.Content` @mnajdova ([#305](https://github.com/stardust-ui/react/pull/305)) - Ensure `Popup` is rendered as direct child of `body` element in the DOM tree @kuzhelov ([#302](https://github.com/stardust-ui/react/pull/302)) +- Fix toggle logic of `Popup` as reaction on key press events @kuzhelov ([#304](https://github.com/stardust-ui/react/pull/304)) ### Features - Add focus styles for `Menu.Item` component @Bugaa92 ([#286](https://github.com/stardust-ui/react/pull/286)) diff --git a/docs/src/examples/components/Popup/Types/PopupExample.shorthand.tsx b/docs/src/examples/components/Popup/Types/PopupExample.shorthand.tsx index 0226ffc5da..4ef39481cf 100644 --- a/docs/src/examples/components/Popup/Types/PopupExample.shorthand.tsx +++ b/docs/src/examples/components/Popup/Types/PopupExample.shorthand.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { Button, Popup } from '@stardust-ui/react' +import { Button, Input, Popup } from '@stardust-ui/react' class PopupExample extends React.Component { state = { popupOpen: false } @@ -13,11 +13,11 @@ class PopupExample extends React.Component { { + alert(`Popup is requested to change its open state to "${newProps.open}".`) this.setState({ popupOpen: newProps.open }) - alert(`Popup open state was changed to "${newProps.open ? 'true' : 'false'}".`) }} trigger={