Skip to content

[2.0.0-beta.6] Bug - Passing string to binded style doesn't render #3379

@async0x42

Description

@async0x42

Vue.js version

2.0.0-beta.6

Reproduction Link

Vue 1.0: https://jsfiddle.net/crswll/dxuoayey/
Vue 2.0 (broken): https://jsfiddle.net/b5kvqpqn/
Vue 2.0 (working): https://jsfiddle.net/crswll/dxuoayey/2/

What is Expected?

Passing a string directly into a binded style should render properly, as in 1.0

What is actually happening?

The style doesn't exist in the DOM when running under 2.0.

There's no documented changes for this that I could see, so I'm assuming this is a bug. Thanks to @crswll for the V1/2 jsfiddles and finding the solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions