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

Add isMultiline to <ContentEditable/> #199

Open
theMasix opened this issue May 22, 2020 · 1 comment
Open

Add isMultiline to <ContentEditable/> #199

theMasix opened this issue May 22, 2020 · 1 comment

Comments

@theMasix
Copy link

theMasix commented May 22, 2020

I had a problem and it solved by #150. I think it would be great if the ContentEditable component accepts something like isMultiline and if it's set to false, then some validation happens and tabs or line break doesn't allow anymore.

@joseDaKing
Copy link

You could just use onKeyDown and check if event.key is "Enter" and then prevent default

Here is a link to the sandbox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants