cssinjs / cssinjs/jss

Extend function property values are converted to strings

Open
#1,134 0 comments 2 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
JavaScript
Stars
7.1k
Forks
386
PR merge metrics
No merged PRs in 30d

Description

__Expected behavior:__
A clear and concise description of what you expected to happen.

```
const styles = {
linkCommon: {
color: () => "orange"
},
link: {
extend: "linkCommon"
}
};
```

The link should be orange.

__Describe the bug:__
A clear and concise description of what happend instead of the expected behavior.

The function is being converted to a string before being inserted into the DOM.

![image](https://user-images.githubusercontent.com/135528/59602916-fe46d700-90d5-11e9-83a9-fdac35a14176.png)

__Codesandbox link:__

Playground: https://codesandbox.io/embed/core-jss-playground-ef0j4

__Versions (please complete the following information):__
- jss: 10 alpha 18
- jss-preset-default: 10 alpha 18
- Browser Chrome 75
- OS: OX X

_Feel free to add any additional versions which you may think are relevant to the bug._

Not to be confused with https://github.com/cssinjs/jss/issues/479

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.