Thursday, June 30, 2016

Ionic hybrid app: Select multiple not working on some devices

Leave a Comment

I have a selectbox where you can select multiple failure types:

<select name="failureType" ng-model="model.failureType" required ng-options="item.name for item in data.failureType" form="regFailForm" label='{{"FAILURETYPE" | translate}}' multiple> <option value=""></option> </select>

This "works on our machines" but on some devices of the client they can't select multiple items. Like for example the LG G2 (LG-D802) with Android 4.4.2.

Is there a fix for this?

Moto G LG G2

2 Answers

Answers 1

i got an issue similar to this , i fixed it with cross walk project it makes all version of android behave the same but it added extra size to your apk

Check Here

OR Check from docs ON

Answers 2

correct code:

<select  name="failureType" ng-model="model.failureType" required    ng-options="item.name for item in data.failureType"    form="regFailForm"     label='{{"FAILURETYPE" | translate}}'    ng-multiple="true" multiple>     <option value=""></option> </select> 
If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment