Skip to content

Entity select options are not cleared on desktop after message edit #7536

Open
@Xirado

Description

@Xirado

Description

When using an entity select, and edit the message in response to the interaction with the same content (Callback type UPDATE_MESSAGE), the selected option(s) will not be cleared on Desktop until another component is used, while they are on mobile. While inconsistent, this also means that to my knowledge, there's no way to clear the selected options at all (except maybe changing the custom_id). I think the correct behaviour would be to always clear the select after a message update (Like how it is on mobile) and populate only based on the provided default_values.

Providing an empty default_values array does not change this behaviour

Steps to Reproduce

  1. Send a message with an entity select attached (I used IS_COMPONENTS_V2 flag, have not tested without)
  2. When the interaction is received, use UPDATE_MESSAGE callback type with the same component

Expected Behavior

The select menu should always be cleared if it was updated based on the provided default_values

Current Behavior

The selected entity will still be selected on desktop after the the message was updated
The select menu will be cleared on mobile based on default_values

Screenshots/Videos

No response

Client and System Information

canary 395712 (f927aca) Host 0.0.602 x64 Build Override: N/A Linux 64-bit (6.14.3-arch1-1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions