Skip to content

Commit c452c62

Browse files
EmilyyyLiulh01217311claude
authored
docs: clarify Typography editable onChange trigger description (#59021)
Co-authored-by: lh01217311 <[email protected]> Co-authored-by: Claude <[email protected]>
1 parent 11a07c0 commit c452c62

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎components/typography/index.en-US.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Common props ref:[Common props](/docs/react/common-props)
155155
| tooltip | Custom tooltip text, hide when it is false | ReactNode | `Edit` | 4.6.0 |
156156
| triggerType | Edit mode trigger - icon, text or both (not specifying icon as trigger hides it) | Array&lt;`icon`\|`text`> | \[`icon`] | |
157157
| onCancel | Called when type ESC to exit editable state | function | - | |
158-
| onChange | Called when input at textarea | function(value: string) | - | |
158+
| onChange | Called when editing is completed | function(value: string) | - | |
159159
| onEnd | Called when type ENTER to exit editable state | function | - | 4.14.0 |
160160
| onStart | Called when enter editable state | function | - | |
161161

‎components/typography/index.zh-CN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*LT2jR41Uj2EAAA
156156
| tooltip | 自定义提示文本,为 false 时关闭 | ReactNode | `编辑` | 4.6.0 |
157157
| triggerType | 编辑模式触发器类型,图标、文本或者两者都设置(不设置图标作为触发器时它会隐藏) | Array&lt;`icon`\|`text`> | \[`icon`] | |
158158
| onCancel | 按 ESC 退出编辑状态时触发 | function | - | |
159-
| onChange | 文本域编辑时触发 | function(value: string) | - | |
159+
| onChange | 文本域编辑完成时触发 | function(value: string) | - | |
160160
| onEnd | 按 ENTER 结束编辑状态时触发 | function | - | 4.14.0 |
161161
| onStart | 进入编辑中状态时触发 | function | - | |
162162

0 commit comments

Comments
 (0)