Gdevelop: Object drop-down list doesn't disappear after selecting an object

Created on 9 Jan 2019  Â·  4Comments  Â·  Source: 4ian/GDevelop

Describe the bug

When you click in a 'Choose an object' field, a drop-down list of available objects appears. When you select an object from this list however, the list doesn't disappear. Instead, all the other objects are removed and you're left with a very unhelpful list of the object you just chose. In addition, this often blocks you from being able to click on the next field under it.

To Reproduce

See example:
peek 2019-01-09 21-11

😤Non optimal UI behavior

Most helpful comment

I think I found the good solution, by still having the dropdown showing by default when no object is selected (to hint to the user that it can browse the objects) but not showing the dropdown when the field is focused when an object is already selected.
So we should have the best of both world: dropdown opened when the action/condition is just being created, and hidden when you open it again later or when you select an object.

object selector

Will be in the next version :)

All 4 comments

Yes that's something that was added but that could be reverted. The only downside is that in this case, the first field is not focused, so that you can't use the modal with the keyboard alone. See https://github.com/4ian/GDevelop/pull/675

@blurymind if you want to re-make your PR, I think we can remove this for now unless we have a better way of focusing without opening the dropdown.

I think I found the good solution, by still having the dropdown showing by default when no object is selected (to hint to the user that it can browse the objects) but not showing the dropdown when the field is focused when an object is already selected.
So we should have the best of both world: dropdown opened when the action/condition is just being created, and hidden when you open it again later or when you select an object.

object selector

Will be in the next version :)

That was fast :) thank you for fixing it

On Thu, Jan 10, 2019, 8:29 AM Florian Rival <[email protected] wrote:

Closed #859 https://github.com/4ian/GDevelop/issues/859.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/4ian/GDevelop/issues/859#event-2065205958, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGMbVYOXei47jlcnpLkeTOLH_5dgbyUuks5vBvnygaJpZM4Z4IgK
.

Changes were simple: https://github.com/4ian/GDevelop/commit/56afb11e2c4abea98b82fb59fc248f80d6245403

but required to think a bit about all the different interactions to know the precise condition for having the dropdown opening.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Wend1go picture Wend1go  Â·  3Comments

BWPanda picture BWPanda  Â·  4Comments

4ian picture 4ian  Â·  3Comments

RyanNerd picture RyanNerd  Â·  4Comments

PascalLadalle picture PascalLadalle  Â·  3Comments