discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

`Select`s not working in `Modal`s on mobile, works on desktop

Open Pirulax opened this issue 1 year ago • 2 comments

Description

Select inputs dont appear in modals on mobile at all, while they work just fine on desktop

Steps to Reproduce

Send a modal with a select. I'm using Discord.py so I have no clue how the raw payload looks like, so I can't post it. If it matters, I'm sending the Modal as a response to a Button interaction.

Expected Behavior

The Modal to appear as it does on Desktop

Current Behavior

Select doesn't appear

Screenshots/Videos

Image

image

Client and System Information

I'm using Discord.py, latest. Desktop is Windows 10 latest build, phones are (tested on multiple) Samsung S20+, iPhone 11/12 (Not sure which iOS), all show the same issue.

Pirulax avatar Aug 10 '22 00:08 Pirulax

Select menus are not supported in modals. This is not a bug.

advaith1 avatar Aug 10 '22 00:08 advaith1

That's weird. They work perfectly fine on Desktop. I wonder why they wouldn't be supported? Super nice feature to have.

Pirulax avatar Aug 10 '22 00:08 Pirulax

These aren't currently supported because they don't work on Mobile 😛.

IanMitchell avatar Aug 10 '22 20:08 IanMitchell

Okay, but they will be supported, as I understand? Someone people have told me they aren't supported at all (implying it won't be supported either).

Pirulax avatar Aug 13 '22 00:08 Pirulax

Eventually we do plan on adding selects to modals, but there is no timeline on when that will happen and we are not actively working on it.

IanMitchell avatar Aug 16 '22 17:08 IanMitchell

Well, that is a bummer, it was super useful :( Now I had to resort to a really ugly (it was already ugly because sending a modal after a modal is not possible, which I had to do, because I had more than 5 items to be sent).

Pirulax avatar Sep 09 '22 11:09 Pirulax

Select menus are not supported in modals. This is not a bug.

but why it works?

timka-123 avatar Oct 23 '22 14:10 timka-123

but why it works?

it doesn't anymore, they fixed it

Smidul avatar Oct 23 '22 15:10 Smidul

Yeah it used to work on desktop (when I opened the ticket), then they removed it...

Pirulax avatar Oct 23 '22 16:10 Pirulax