Skip to content

draft-js-mention-plugins: mentionSuggestions is handling up/down arrow keys even when it's inactive #1026

@gnestor

Description

@gnestor

Use-case/Problem

This was initially reported in #856. I'm running the current master of this repo and still running into this issue. I have looked at the source and I will submit a PR that I think should fix this. I can't reproduce this in the example because the mentions don't change in that example, therefore the mentionSuggestions.componentWillReceiveProps is never called, but when it is, it will either open the dropdown or close it based on whether the suggestions have changed or not, which doesn't make sense to me (if the dropdown is open when props change, keep it open, if closed, then keep it closed).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions