Bug in the Spinner Component

Spinner dont respond for the first selected item…
for example
in order to make the following blocks i need to add an empty item using comma.
bug11
this property doesn’t work. Even the Button setText methord didn’t work.
bug13
i changed to it . it worked.
bug12

Overall all the After Selecting event is raised when the item having index greater than 1 is selected.

hope this will be fixed.

1 Like

What do you want to try?
Do you want that the first item is not clickable?

No. I am not talking of click event.

I was just saying, when i select the first item of the spinner,
Nothing happens .

It show raise " when spinner1. after selecting ", but it doesn’t.

Or

The blocks doesn’t work under" when spinner1. After selecting"

The blocks works when second, third, fourth … Nth item is selected.

I don’t understand why you do this:

bug12

If you do it like this your first item will not response “About”. You will get as result “” a empty text

i did that because i don’t want to show about twice.
using a comma create an empty item having index 1 (which is ofcourse of no use).
but doing this made ‘about’ at second index and the “if” block worked for “about”.

ok i think i am confusing little bit.
try this …
explain1
with these properties.
explain2

and select test 1
noting will happen.

i think the event shoud be named as “After spinner1. selection changed”
as it respond to changed selection.

I test it when I’m at home. I’m current in school.

Yeah sure.
thanks for your attention.

yes, selecting the first item of a spinner does not fire the AfterSelecting event
therefore you should use a text like this “Please select a line” as first item, see also this example https://groups.google.com/d/msg/mitappinventortest/sYtrmS0SNtI/1Qe5ncJEQvsJ

Taifun

3 Likes

This is too a solution:

If “use promt” is set to true then the first item will be your “prompt text”… the text you see first before you clicked on a item.

4 Likes

Thank you brothers.
@Mika @Taifun
For the solutions.

1 Like

@Mika
It will be good if selecting the first item fires After selecting event.
If possible please merge that fix in the source codes.

I have the same problems. I have a spinner with the first element called “Settings” to go to a settings screen when it is selected. The spinner does not respond to a click on this first element. But it gets fired when the screen initializes. I had to disable it to prevent the app from opening in screen 1 and going straight to the settings screen. Can anybody confirm this and could this be the same problem?

what happens, if you try the example project
https://groups.google.com/forum/#!msg/mitappinventortest/sYtrmS0SNtI/1Qe5ncJEQvsJ
https://community.makeroid.io/t/bug-in-the-spinner-component/1061/9?u=taifun
Taifun

1 Like

Thanks @Taifun I’ll try that. Nevertheless it looks awful and not very native

How can i use this solution if i set elements from variable list

This post was flagged by the community and is temporarily hidden.