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

Allow empty text in output functor #212

Merged
merged 1 commit into from
Jan 4, 2021
Merged

Allow empty text in output functor #212

merged 1 commit into from
Jan 4, 2021

Conversation

anukul
Copy link
Contributor

@anukul anukul commented Dec 22, 2020

Fixes #211

@@ -530,7 +530,7 @@ class ReactTextareaAutocomplete extends React.Component<
};
}

if (!textToReplace.text) {
if (!textToReplace.text && typeof textToReplace.text !== 'string') {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe textToReplace.text !== ''

@jukben
Copy link
Collaborator

jukben commented Dec 22, 2020

Hey! Thank you so much for your PR!

Here is the playground for this revision 🚀

I hope everything is fine! ❤️

This message has been generated automagically

@jukben
Copy link
Collaborator

jukben commented Jan 4, 2021

Thanks for the contribution!

@jukben jukben merged commit cc4a624 into webscopeio:master Jan 4, 2021
@anukul anukul deleted the patch-1 branch January 5, 2021 07:42
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.

Allow empty text in output functor
2 participants