Skip to content

Conversation

@tanhauhau
Copy link
Member

Fixed #3067 (comment) where scoped css causes a string concatenation and ended up with undefined class name.

  • I've combined the computation of value in both (dependencies.length > 0) if and else case, to make them consistent. for example, this bug was fixed in the if (dependencies.length > 0) case but not the else case. see repl
  • I've tried to moved the get_value(block) of src/compiler/compile/nodes/Attribute.ts to src/compiler/compile/render_dom/wrappers/Element/Attribute.ts, but apparently is still being used by InlineCompiler, which would take a bigger change, and I don't want to touch it for now.

@Rich-Harris Rich-Harris merged commit 03afc7a into sveltejs:master Nov 9, 2019
@Rich-Harris
Copy link
Member

👍

@tanhauhau tanhauhau deleted the tanhauhau/scoped-css-with-undefined-class branch November 9, 2019 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Undefined attributes in spread

2 participants