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

use textArea in input mode or disable enter effect #154

Open
hbehrad opened this issue Apr 23, 2023 · 2 comments
Open

use textArea in input mode or disable enter effect #154

hbehrad opened this issue Apr 23, 2023 · 2 comments

Comments

@hbehrad
Copy link

hbehrad commented Apr 23, 2023

hi i want to use input but maybe the user press enter key and the form will submit incorrectly .
can use disable submit form with enter press or use textarea insted of text input ?

@hbehrad hbehrad changed the title use textArea in input mode or disable enter efect use textArea in input mode or disable enter effect Apr 23, 2023
@hbehrad
Copy link
Author

hbehrad commented Apr 23, 2023

i'll had remove << ,b=function(e){return 13===e.keyCode} >> this part .
and enter press effect is disabled

@elgstrom
Copy link

elgstrom commented May 3, 2023

Hey @hbehrad, I made a change in regards to this issue. So that you can set a value to false and it will not submit on enter or quit on escape. If you want I can make a pull request and you should be able to add it.

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