Skip to content

modify japanise copy bug #304

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

Closed
wants to merge 1 commit into from
Closed

modify japanise copy bug #304

wants to merge 1 commit into from

Conversation

yoshimoto8
Copy link

Fixes #242

What did you change (functionally and technically)?

When input two or more syllable words and then touch space key or select word, to be copied.
So I add code to ignore applyChangeToValue(), if there is no @.

I modify this and actually check it, it will work for Japanese.

displayTransform,
regex
)
let newValue = newPlainTextValue === '@' ?
Copy link
Contributor

Choose a reason for hiding this comment

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

This assumes that mentions are only triggered using @ which is not the case. If I understand the approach correctly then this should take all possible trigger characters into account.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also newPlainTextValue is the entire value in the textarea. So it would only fix the problem in the case the textarea is completely empty. I'm afraid this PR doesn't really bring us any further in fixing the problem.

timsu pushed a commit to cryptagon/react-mentions that referenced this pull request Feb 25, 2022
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.

3 participants