Skip to content

Feature Request : Add the possibility to have a function to set data directly in field #154

Open
@qlaffont

Description

The objective is to have in Field Return in props value, a function called onData to change directly the data without HTML Event passed.

Exemple :

<Field name="test">
          {(field, props) => (
            <>
<Switch
      {...props}
      value={props.value}
      onChange={(data: boolean | null) => {
        props.onData(data);
      }}
    /></>
          )}
        </Field>

Discord Conversation : https://discord.com/channels/722131463138705510/1100520819207184475/1179455802478698636

Thanks !

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions