Skip to content

v-bind in CSS for async component not applied #8520

Closed
@halsandr

Description

@halsandr

Vue version

3.3.4

Link to minimal reproduction

https://play.vuejs.org/#eNqVU8GO2jAQ/RXLF4IENuq2lzSgbQ89V6JHX0IyLN4mtmU7YRHi33diJyELWqQ9RPJ4nt+8PD+f6S9jWNsATWnmCiuNJw58YzZCESJro60nZwv7C9lbXZMZQmc/J7369LvxXqu+zXgsO8qI675CK+fJUZb+QNYE2RJBv61W5k3Q+Q3IHfTxj7S4isB9XjmIoCtgC7gu7xFXVAlVfkKAgiP5i8qkgySx4HTVwpysN+TcYUn3r/9kDbrxQ3dBfqxWke4yH0gDHfMHUEny4figlrV51QAO9LaBcDg2o9L7bked8Wg4Wo2Fh9pUuYdgfLZtnAHlYoV1Kdt+icXoebuU+7WgowpBSRpcXkev+fXMzj4+H4V+RpDxQUDGJ9IyPqqmCxoTsaxzw16dVpio4JLoG07QdPBNUMxHVwt68N64lPNGmf8vrNA1f8Yet43yeDHLUtfPT+yJfUcFzk+3Gbh6ubP66MDiQEEXE26Omy3YpQVVggX7cNYNdjrvpnU3M9ylUBf8/WvwH76lEvZSAWbSuOmbwgz4GF3TtTArE2DS2zYLtzJLydZbqV5ikL6Q/AU+mFco/BdewMieH3PZs+Peo+zuYriKKncO0zWkTdA+TB5QZgTFRMX1xzwFXudPFRBXaANlOMzG6PbqgyEpBnknVZkE61jY6/UHpR3Lhl7eAasGqXg=

Steps to reproduce

The issue is apparent in the repro (the buttons are different widths).

The important points to reproduce this are; an async component using v-bind in CSS must be hidden by v-if="false" in a parent, when the component is then shown, the CSS variable is not applied.

What is expected?

The buttons should both have a 200px width applied.

What is actually happening?

Only the first button has the 200px width applied.

System Info

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.scope: suspense

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions