ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.07k stars 13.51k forks source link

bug: <ion-select> not displaying selected item. #5250

Closed Zeakk closed 8 years ago

Zeakk commented 8 years ago

Type: bug

Ionic Version: 2.x

Platform: all

<ion-select> is not displaying the updated selected item.

<ion-item>
    <ion-label>Gaming</ion-label>
    <ion-select [(ngModel)]="gaming">
      <ion-option value="nes" checked="true">NES</ion-option>
      <ion-option value="n64">Nintendo64</ion-option>
      <ion-option value="ps">PlayStation</ion-option>
      <ion-option value="genesis">Sega Genesis</ion-option>
      <ion-option value="saturn">Sega Saturn</ion-option>
      <ion-option value="snes">SNES</ion-option>
  </ion-select>
</ion-item>

The code above will ALWAYS show NES as the checked item even after selecting another item.

adamdbradley commented 8 years ago

This has been fixed and will be in the next release: https://github.com/driftyco/ionic/commit/58443f0ff3bacecdb51ef68a796cfed951fd904e

thanks

Zeakk commented 8 years ago

You guys are stomping out bugs too fast...