modular-forms icon indicating copy to clipboard operation
modular-forms copied to clipboard

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

Open qlaffont opened this issue 2 years ago • 4 comments

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 !

qlaffont avatar Dec 01 '23 15:12 qlaffont

@fabian-hiller 👋

qlaffont avatar Dec 01 '23 15:12 qlaffont

Thank you for creating this issue. I will probably answer to this in January.

fabian-hiller avatar Dec 01 '23 15:12 fabian-hiller

any update on this @fabian-hiller ?

qlaffont avatar Jan 29 '24 08:01 qlaffont

Unfortunately not. The revision of Modular Forms will probably take 2 to 4 months longer than expected. It is a lot of work and at the moment I can only partially focus on the project.

fabian-hiller avatar Jan 29 '24 15:01 fabian-hiller