hexaflip icon indicating copy to clipboard operation
hexaflip copied to clipboard

instance.setValue does strange behavior

Open crapthings opened this issue 8 years ago • 1 comments

https://github.com/crapthings/test-hexa-flip

i try to play with demo4

when i setValue like

opt =
    set1: 2
    set2: 1
    set3: 3

username.setValue opt

will always set too the last item in array, so it slides to 3 3 3

set = [
    {
        value: 0,
        style: {
            backgroundColor: '#e67e22'
        }
    },
    {
        value: 1,
        style: {
            backgroundColor: '#1ABC9C'
        }
    },
    {
        value: 2,
        style: {
            backgroundColor: '#f1c40f'
        }
    },
    {
        value: 3,
        style: {
            backgroundColor: '#2ECC71'
        }
    }
];

crapthings avatar Feb 16 '16 12:02 crapthings

setValue doesnt work if value is Number ?

crapthings avatar Feb 16 '16 12:02 crapthings