Skip to content

Commit

Permalink
Fix style sheet default value in Vue
Browse files Browse the repository at this point in the history
  • Loading branch information
drozdzynski committed Jun 1, 2024
1 parent 585e821 commit 83c608c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thin-apples-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@teiler/vue": patch
---

Fix style sheet default value
2 changes: 1 addition & 1 deletion packages/vue/src/sheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export let styleSheet = null
export const StyleSheet = 'STYLE_SHEET'

export function getStyleSheet(): Sheet {
const provided = inject<Sheet>('STYLE_SHEET', () => createStyleSheet({}), true)
const provided = inject<Sheet>('STYLE_SHEET', () => null, true)

if (provided) {
return provided
Expand Down

0 comments on commit 83c608c

Please sign in to comment.