Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
- Use
<Fragment>
or<>
package your popover content - Click or hover popover (depends on how you define trigger)
What is expected?
expected to show popover
What is actually happening?
nothing happen and no errer throwed
Environment | Info |
---|---|
antd | 4.6.2 |
React | 16.12 |
System | codesandbox |
Browser | chrome 79 |
Metadata
Metadata
Assignees
Labels
No labels
Activity
richard-li-next commentedon Sep 1, 2020
I and @Rey-Wang are from the same team. In the antd3.x version, Popover's children type is
children?: React.ReactNode
, but in the antd4.x version its type is changed tochildren?: React.ReactElement
. So we had to wrap it with a layer of<></>
.fix: Tooltip/Popover children type
fix: Tooltip/Popover children type
fix: Tooltip/Popover children type
fix: Tooltip/Popover children type (#26534)
Rey-Wang commentedon Sep 2, 2020
@afc163 Even we fix the type that we can add muti-child in Popover, there still has a problem with the
<></>
or<Fragment></Fragment
I don't think this issue should be closed
giovannipds commentedon Jun 1, 2022
It's possible to just use a
div
to make that work (instead ofFragment
/</>
)