Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Callback is not working; suggestions do not get updated when I type #35

Description

@thlee1122

Hello,

I am having an issue with the callback function. I have trigger={'#'} so when I type # then it does show me the suggestions. However, suggestions does not get updated with matching suggestions when I continue typing.

Below is the example of what I mean

image

Here is my code for MentionsTextInput:
image

Here is my callback function:
image

I am actually importing sample hashTag data from local json file through
import * as hashTagData from '../data/sampleHashTagData.json';

And in the componentDidMount(), I am setting that data to the state:
componentDidMount() { this.setState({ hashTags: hashTagData.results, }); }

Could you anyone please help me solve this issue?

Activity

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

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