shiv19 / nativescript-cfalert-dialog

CFAlertDialog Wrapper for NativeScript
Apache License 2.0
42 stars 21 forks source link

multi choose error #17

Closed amirhoseindgr closed 5 years ago

amirhoseindgr commented 5 years ago

hi guys . i get error when i choose more than 4 items in multiChoiceList

error : multi select items and boolean array size not equal

var cfalertDialog = new CFAlertDialog(); var itemState = [false, false, false, false, false]; var options = { dialogStyle: CFAlertStyle.ALERT, title: 'This is a simple list!', multiChoiceList: { items: ['first', 'second', 'third', 'fourth' ,'fifth'], selectedItems: itemState, onClick: function(dialogInterface, index, b) { console.log(dialogInterface); console.log(index); console.log(b); }, }, buttons: [ { text: 'Okay', buttonStyle: CFAlertActionStyle.POSITIVE, buttonAlignment: CFAlertActionAlignment.END, onClick: function(response) { console.log(response); }, }, ], }; cfalertDialog.show(options);

i use 1.0.6 version

shiv19 commented 5 years ago

This issue was fixed in version 1.0.12

15