This repository was archived by the owner on Dec 25, 2024. It is now read-only.
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
[Bug] Computed property not working when used in v-bind:style
#37
Closed
Description
In my project I have a computed property, let's say x
which is an integer.
When I bind it inside a style in the template, like this
<template>
<div :style="{ left: `${x}px` }">Hello</div>
</template>
the style tag is blank on the rendered output.
But if I use it inside moustache syntax, like this
<template>
<div :style="{ left: `${x}px` }">{{ x }}</div>
</template>
it works. The style is populated and the content is also displayed.
Is there some specific edge case that only affects the style
attribute?
Metadata
Metadata
Assignees
Labels
No labels