Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#97 Add valueTransform prop to InputField #99

Merged
merged 1 commit into from
Apr 5, 2023
Merged

#97 Add valueTransform prop to InputField #99

merged 1 commit into from
Apr 5, 2023

Conversation

ivam5
Copy link
Collaborator

@ivam5 ivam5 commented Apr 4, 2023

Basic information

  • Tiller version: 1.4.0
  • Module: formik-elements

Additional information

Add custom text transform prop.

Description

Add valueTransform prop which is function or a string that determines how the input value should be transformed when the user types into the input field. In case it's a function, it will be called every time the input value changes. The function can then modify the value as needed and return the modified value.

Related issue

Closes #97

Types of changes

  • Enhancement (non-breaking change which enhances existing functionality)

Checklist

  • I have read the project's CONTRIBUTING document
  • I have checked my code with the project's static analysis tooling
  • I have formatted my code with the project's Prettier code-style configuration
  • I have checked my code for misspellings
  • I have organized my changes in easy-to-follow commits
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added a story to cover my changes
  • All new and existing story tests pass

@ivam5 ivam5 requested review from fbeceic and jtomic-croz April 4, 2023 14:03
@jtomic-croz jtomic-croz merged commit d1f944a into master Apr 5, 2023
@fbeceic fbeceic deleted the task/97 branch April 7, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add custom transform function to InputField onChange
3 participants