fuse-open / fuselibs

Fuselibs is the Uno-libraries that provide the UI framework used in Fuse apps
https://npmjs.com/package/@fuse-open/fuselibs
MIT License
176 stars 72 forks source link

NodeGroup reverses the rendering of elements within a Each #666

Open eksperts opened 7 years ago

eksperts commented 7 years ago

Reported on community.

Fuse Version

fuse version 1.3.0

OS

Mac OS High Sierra

What do I expect?

I expect to display items according to the array order.

What happens instead?

items are displayed in reverse order.

What is the cause?

The cause is the use of the NodeGroup that for some reason reverses the order at the time of the rendering within a loop Each.

Reproduce the issue

<App>
    <JavaScript>
    var Observable= require("FuseJS/Observable");
    var items = Observable(1,2,3,4,5,6,7,8,9,10);

    module.exports ={items:items}
    </JavaScript>

    <StackPanel>
        <Each Items="{items}">
            <NodeGroup>
                <Text>Element:</Text>
                <Text>{}</Text>
            </NodeGroup>
        </Each>
    </StackPanel>
</App>

file

kusma commented 7 years ago

image