diff --git a/src/core/client/ui/components/ClickOutside/ClickOutside.mdx b/src/core/client/ui/components/ClickOutside/ClickOutside.mdx index 0d8126b5d..04bd19da7 100644 --- a/src/core/client/ui/components/ClickOutside/ClickOutside.mdx +++ b/src/core/client/ui/components/ClickOutside/ClickOutside.mdx @@ -19,8 +19,11 @@ clicks outside the component. Click the blue background. It should trigger an alert. Nothing should happen if you click the button. -
- alert('You clicked outside!')}> +
+ { + if (e.srcElement.id === "outside") { + alert('You clicked outside!'); + }}}>
diff --git a/src/core/client/ui/components/Popover/Popover.mdx b/src/core/client/ui/components/Popover/Popover.mdx index e051df50d..a7a67a04b 100644 --- a/src/core/client/ui/components/Popover/Popover.mdx +++ b/src/core/client/ui/components/Popover/Popover.mdx @@ -3,20 +3,21 @@ name: Popover menu: UI Kit --- -import { Playground, PropsTable } from 'docz' +import { Playground } from 'docz' import Popover from './Popover' import Button from '../Button' +import Flex from '../Flex' import Typography from '../Typography' import ButtonIcon from '../Button/ButtonIcon' # Popover -`Popover` uses `react-popper` that has `Popper.js` behind. +`Popover` renders a popover dialog attached to another `Element`. ## Basic usage This is the body
} + body={This is the body} > {({ toggleVisibility, forwardRef }) => ( - This is the body - + )} > {({ toggleVisibility, forwardRef }) => (