From 0cbf3ca354428598f35fd889864dea3febc5a65c Mon Sep 17 00:00:00 2001 From: Carl Chen <71313168+cc-hearts@users.noreply.github.com> Date: Tue, 30 Jan 2024 12:05:20 +0800 Subject: [PATCH] docs: updating the `dropdownRender` description and jumps in the FAQ for Select (#7313) --- components/select/index.en-US.md | 2 +- components/select/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index b2e25873e..136217e54 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -117,7 +117,7 @@ Select component to select value from options. ### The dropdown is closed when click `dropdownRender` area? -Dropdown menu will be closed if click `dropdownRender` area, you can prevent it by wrapping `@mousedown.prevent` See the [dropdownRender example](/components/select/#components-select-demo-custom-dropdown). +Dropdown menu will be closed if click `dropdownRender` area, you can prevent the default behavior of a click event, See the [dropdownRender example](#components-select-demo-custom-dropdown-menu). ### Why is `placeholder` not displayed? diff --git a/components/select/index.zh-CN.md b/components/select/index.zh-CN.md index d4d49a380..4de3bf8ae 100644 --- a/components/select/index.zh-CN.md +++ b/components/select/index.zh-CN.md @@ -117,7 +117,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*5oPiTqPxGAUAAA ### 点击 `dropdownRender` 里的内容浮层关闭怎么办? -自定义内容点击时会关闭浮层,如果不喜欢关闭,可以添加 `@mousedown.prevent` 进行阻止。 看下 [dropdownRender 例子](/components/select-cn/#components-select-demo-custom-dropdown) 里的说明。 +自定义内容点击时会关闭浮层,如果不喜欢关闭,可以通过取消点击事件的默认行为进行阻止。 看下 [dropdownRender 例子](#components-select-demo-custom-dropdown-menu) 里的说明。 ### 为什么 `placeholder` 不显示 ?