New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared attributes for different component results in concatenated class names #1941

s-ilya opened this Issue Aug 21, 2017 · 1 comment


None yet
2 participants
Copy link

s-ilya commented Aug 21, 2017

This is how I'm using shared attributes object for styling:

let attrs = { style: { left: '100px' } }
m('.label', attrs, 'Label')
m('.tick', attrs)

Expected Behavior

I would expect both .label and .tick to appear in DOM tree with the same style.

Current Behavior

It includes in DOM tree two components with the same class .label.tick

Possible Solution



This comment has been minimized.

Copy link

isiahmeadows commented Aug 27, 2017

Closing per #1942

pygy added a commit that referenced this issue Nov 29, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment