# Ion-Select + array problem

**URL:** <https://forum.ionicframework.com/t/ion-select-array-problem/147983>\
**Category:** Ionic Framework\
**Created:** [November 19, 2018, 8:41pm UTC](https://forum.ionicframework.com/t/ion-select-array-problem/147983 "2018-11-19T20:41:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivanpbf](https://avatars.discourse-cdn.com/v4/letter/i/b4bc9f/32.png) [@ivanpbf](https://forum.ionicframework.com/u/ivanpbf)\
**Post date:** [November 19, 2018, 8:41pm UTC](https://forum.ionicframework.com/t/ion-select-array-problem/147983/1 "2018-11-19T20:41:32Z")

</div>

Hey was wondering if you knew how to handle this:  
I’ve got an ion-select that changes the value of an array BUT it only works when i either refresh the page or switch the ion select so if i have something similar to this  
option 1  
option 2  
option 3 [selected]

and array is currently showing option 3

when i switch to option 1 it’ll still show option 3  
but if i then change to option 2, it’ll show option 1  
why does this happen? any ideas?

---

<div class="post-metadata">

**Author:** ![jnascimento](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jnascimento/32/122789_2.png) [@jnascimento](https://forum.ionicframework.com/u/jnascimento)\
**Post date:** [November 19, 2018, 8:43pm UTC](https://forum.ionicframework.com/t/ion-select-array-problem/147983/2 "2018-11-19T20:43:27Z")

</div>

Can you post some code, please?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:09pm UTC](https://forum.ionicframework.com/t/ion-select-array-problem/147983/3 "2021-07-19T21:09:19Z")

</div>

Closed on July 19, 2021, 9:09pm UTC


