Skip to content

Commit

Permalink
fixup! Change classMap to set classes correctly for SVGs
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVig committed May 23, 2019
1 parent 3b1dd28 commit 47e2f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directives/class-map.ts
Expand Up @@ -48,7 +48,7 @@ export const classMap = directive((classInfo: ClassInfo) => (part: Part) => {

// handle static classes
if (!classMapCache.has(part)) {
element.setAttribute('class', committer.strings.join(' '));
element.classList.value = committer.strings.join(' ');
}

const {classList} = element;
Expand Down

0 comments on commit 47e2f6c

Please sign in to comment.