cssinjs / jss

JSS is an authoring tool for CSS which uses JavaScript as a host language.
https://cssinjs.org
MIT License
7.08k stars 399 forks source link

Linked sheet.update doesn't work – rules are not attached to the DOM #1432

Closed amatiash closed 3 years ago

amatiash commented 3 years ago

frustrated, shame

Expected behavior: Expect rules to be attached to the DOM

Describe the bug: Using link: true with sheet.update doesn't work – rules are not attached.

Codepen link: Here is an example with the issue. I took the code from original documentation.

Versions:

Had the same bug with jss 9.8.7

kof commented 3 years ago

You are looking in a wrong way. CSSOM API changes don't show up in the DOM, use a class on an element and style panel or go into the style sheet properties inspector.

Screenshot 2021-04-26 at 12 13 30
amatiash commented 3 years ago

Thanks for explanation!