Skip to content

Commit e769550

Browse files
fix: richTextField supports beforeInput/afterInput, but these were missing from types.ts (#12889)
Add `afterInput` and `beforeInput` to `admin.components` of RichTextField type. These props are supported but missing from types.
1 parent 0e9865c commit e769550

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • packages/payload/src/fields/config

‎packages/payload/src/fields/config/types.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,6 +1268,8 @@ export type RichTextField<
12681268
>={
12691269
admin?: {
12701270
components?: {
1271+
afterInput?: CustomComponent[]
1272+
beforeInput?: CustomComponent[]
12711273
Error?: CustomComponent
12721274
Label?: CustomComponent
12731275
}&Admin['components']

0 commit comments

Comments
 (0)