Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properties defined on an Array are not unwrapped in template #1846

Closed
ByScripts opened this issue Aug 13, 2020 · 1 comment · Fixed by #1859
Closed

Properties defined on an Array are not unwrapped in template #1846

ByScripts opened this issue Aug 13, 2020 · 1 comment · Fixed by #1859

Comments

@ByScripts
Copy link

Version

3.0.0-rc.5

Reproduction link

https://codepen.io/ByScripts/pen/YzqwEER

Steps to reproduce

<template>
    <pre>{{ obj.prop }}</pre>
    <pre>{{ arr.prop }}</pre>
</template>

<script>
    setup() {
        let obj = {};
        obj.prop = ref("obj prop");

        let arr = [];
        arr.prop = ref("arr prop");

        return reactive({ obj, arr });
    }
</script>

What is expected?

Both prop properties should be unwrapped

What is actually happening?

Only the object prop is unwrapped. The array prop is not.

@Picknight
Copy link
Contributor

See #1682

@github-actions github-actions bot locked and limited conversation to collaborators Nov 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants