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

Starting a post with an @ mention then adding text before it makes that text blue #929

Closed
alimony opened this issue Jun 29, 2023 · 1 comment · Fixed by #1033
Closed
Assignees
Labels
bug Something isn't working x:planned We're on it!

Comments

@alimony
Copy link
Contributor

alimony commented Jun 29, 2023

Describe the bug

On mobile (only tested on iOS) if you start a post with an @ mention, then put the cursor at the start again and type more text, all text up until the mention is blue.

Originally seen here: https://bsky.app/profile/eaglebaby420.fans/post/3jzcwnc2lmw2t

To Reproduce

Steps to reproduce the behavior:

  1. Start a new post
  2. Type an @ and some chars to get a suggested mention, then add one of those mentions
  3. Move the cursor to before the typed @
  4. Type some more text

Expected behavior

The text before should be normal color like the rest of the post, except mentioned accounts.

Screenshots

See this link for screenshots: https://bsky.app/profile/eaglebaby420.fans/post/3jzcwnc2lmw2t

Details

  • Platform: iOS
  • Platform version: 16.4.1
  • App version: 1.35
@alimony alimony added the bug Something isn't working label Jun 29, 2023
@pfrazee pfrazee added the x:planned We're on it! label Jul 2, 2023
@pfrazee pfrazee self-assigned this Jul 2, 2023
@chead
Copy link

chead commented Jul 9, 2023

This can be fixed by adding a state for PasteInput value property:
const [rawtext, setRawtext] = React.useState('');

and setting it:

        <PasteInput
          testID="composerTextInput"
          ref={textInput}
          value={rawtext}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working x:planned We're on it!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants