Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48984

How to force redraw of ion-select?

$
0
0

Hi,

I have an ion-select with a static, hardcoded list of items. However, the displayed text is translated with a pipe:

<ion-item>
    <ion-label position="floating">{{'Position' | translate}}</ion-label>
    <ion-select interface="popover" [value]="appSettings.getUnits().position" (ionChange)="switchPositionUnits($event)">
        <ion-select-option value="DEGREE">{{'Degree' | translate}}</ion-select-option>
        <ion-select-option value="DEGREE_MINUTES">{{'Degree/Minutes' | translate}}</ion-select-option>
        <ion-select-option value="DEGREE_MINUTES_SECONDS">{{'Degree/Minutes/Seconds' | translate}}</ion-select-option>
    </ion-select>
</ion-item>

Now, the user can switch the language of the app. The label is updated immediately, but the selected item is not. As soon as the user opens the selection list, the content is updated to the new language.

Is there any way to force the ion-select to be redrawn?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48984

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>