Skip to content

The FieldTemplate onChange doesn't work properly. #4897

@abdalla-rko

Description

@abdalla-rko

Prerequisites

What theme are you using?

antd

Version

6.x

Current Behavior

The onChange in FieldTemplate doesn't work properly because it requires a second argument which is the path (fieldPathId), but fieldPathId is not provided as a prop like it is in FieldProps. Why isn't fieldPathId provided in FieldTemplateProps? If there isn't a reason then I can implement it. Thanks!

Expected Behavior

The **fieldPathId** should be provided as a prop to the custom FieldTemplate like we do for custom Field.

Steps To Reproduce

No response

Environment

- OS:
- Node:
- npm:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions