diff --git a/src/popconfirm/popconfirm.en-US.md b/src/popconfirm/popconfirm.en-US.md index 1c616b06cb..ce3bcf86ef 100644 --- a/src/popconfirm/popconfirm.en-US.md +++ b/src/popconfirm/popconfirm.en-US.md @@ -1,5 +1,19 @@ :: BASE_DOC :: +## FAQ + +### How to solve the problem that `Popconfirm` and related floating components based on `Popup` may be offset when nested? + +Currently, this can be solved by `Fragment` or other `HTML` elements + +```js + + <> + {children} + + +``` + ## API ### Popconfirm Props diff --git a/src/popconfirm/popconfirm.md b/src/popconfirm/popconfirm.md index ea1fb19e08..a562151592 100644 --- a/src/popconfirm/popconfirm.md +++ b/src/popconfirm/popconfirm.md @@ -1,5 +1,19 @@ :: BASE_DOC :: +## FAQ + +### `Popconfirm` 及基于 `Popup` 的相关浮层组件,嵌套使用可能出现位置偏移的情况,如何解决? + +目前暂时可通过 `Fragment` 或者其他 `HTML` 元素来解决 + +```js + + <> + {children} + + +``` + ## API ### Popconfirm Props