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
50.93k stars 13.52k forks source link

Selected text not showing before user interaction in ion-select (on binding) #6898

Closed Bouzmine closed 6 years ago

Bouzmine commented 8 years ago

Short description of the problem:

If I bind a variable to an ion-option value, the text of the selected option won't be visible until I open it and confirm the value. This is because the value of the text is dynamic (using ng2-translate).

What behavior are you expecting?

The value which to appear before opening the select.

Which Ionic Version? 2.x

Plunker that shows an example of your issue

Here it is

Run ionic info from terminal/cmd prompt: (paste output below)

Cordova CLI: 6.1.1 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic Framework Version: 2.0.0-beta.8 Ionic CLI Version: 2.0.0-beta.25 Ionic App Lib Version: 2.0.0-beta.15 ios-deploy version: 1.8.6 ios-sim version: 5.0.6 OS: Mac OS X El Capitan Node Version: v5.0.0 Xcode version: Xcode 7.3.1 Build version 7D1014

jgw96 commented 8 years ago

Hey! Thanks for opening an issue with us! Since this seems to be an issue related to the ng2-translate library i would suggest either asking this question on our forum (forum.ionicframework.com) or on their repo or forums. Thanks for using Ionic!

Bouzmine commented 8 years ago

@jgw96 this is not only related to ng2-translate. As you can see in the demo, any binding will bug the same way. Could you please reopen this ?

jgw96 commented 8 years ago

@Bouzmine sorry about that! I will take a second look at this (:

ionitron-bot[bot] commented 6 years ago

Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Thank you for using Ionic!