We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10a1aad commit e7ee210Copy full SHA for e7ee210
packages/coreui-react/src/components/popover/CPopover.tsx
@@ -7,6 +7,7 @@ import { usePopper } from 'react-popper'
7
import { Transition } from 'react-transition-group'
8
9
import { Triggers, triggerPropType } from '../Types'
10
+import { useEffect } from 'react'
11
12
export interface CPopoverProps {
13
// TODO: find solution to not use any
@@ -78,6 +79,10 @@ export const CPopover: FC<CPopoverProps> = ({
78
79
placement: placement,
80
})
81
82
+ useEffect(() => {
83
+ setVisible(visible)
84
+ }, [visible])
85
+
86
const getTransitionClass = (state: string) => {
87
return state === 'entering'
88
? 'fade'
0 commit comments