Skip to content

Feature Request: Ability to format tags on controller change #22

@mattmcquin

Description

@mattmcquin

I have an application that supports chat message tagging and uses this package for formatting tags. When a user copies a message with a tagged user, then pastes into the TextField, the text displays as the unformatted tag string (e.g. @someuser#JohnDoe#). I would like to support the ability to paste messages and have the text automatically formatted.

What I have tried: In the onChanged callback in the TextField, I call .formatTags(), but any additional calls to onChange affect the currently formatted tags (It appears .formatTags() is not idempotent).

If there is a known workaround/feature for this, please let me know. If you think this is possible, let me know, and I can potentially open a PR.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions