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

withNextInputAutoFocusInput goes to next input on new line for a multiline input #116

Open
ceonelson opened this issue Jun 21, 2019 · 2 comments

Comments

@ceonelson
Copy link

using the provided example of:

const MyInput = compose(
    handleTextInput,
    withNextInputAutoFocusInput
)(TextField);

on a <MyInput name="multitest" multiline={true} /> it will go to the next input upon pressing enter instead of adding a new line to the multiline field.

I thought I could work around it by doing this:

const MyMultiInput = compose(
    handleTextInput
)(TextField);

but unfortunately then the normal input above the "multitest" is done it skips the focus to the input below "multitest" that is another normal input.

Any thoughts on how to get around this besides making the multi fields the first or last fields in the form?

@ceonelson
Copy link
Author

What about something like this?

master...ceonelson:patch-1

(haven't tested it yet needed to be in bed when i posted the issue but still wanted to get your thoughts)

@kishanbharda
Copy link

Have you found any solution @ceonelson ?

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

No branches or pull requests

2 participants