Customcollection bug

Hi,

I have an issue with the customcollection in retool mobile.
When i change a numberinput, the selectedItem or selectedIndex of customcollection doesn't change. Only when i press outside of the numberinput component it changes.

I want to automatically save the changes of numberinput, without having to press outside the field.
Does somebody know if this is a bug?

Hi @corneel_martens, this is intended behavior. We mainly use selectedItem for when pressing a collection item (row) and navigating to a detail page.

To achieve the functionality you are looking for, try setting up an event handler for when the number input changes. You can reference the index of the collection item that is receiving the update with i. The first repeatable will evaluate to 0, second one to 1, and so on: