Skip to content

bug: edit message modal "send" button is always enabled, but if there are no changes, hitting send does nothing (modal stays up) #2756

Open
@johnmccalla

Description

@johnmccalla

Describe the bug

Edit message modal "send" button is always enabled, even if no changes have been made to the original message. Furthermore, if you click the "send" button in this state, nothing happens and the modal stays up.

To Reproduce

Steps to reproduce the behavior:

  1. Edit a message
  2. Press "send"
    (Only does this on the first edit, so you need to reload your test app on each try.)

Expected behavior

Either the button is disable while there are no changes to save (preferred imo), or the send button closes the modal regardless of state.

Package version

"stream-chat": "^9.9.0",
"stream-chat-react": "^13.2.1",

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