Closed MichaelKovalchuk closed 5 years ago
Hey! Thanks for contributing! This is a good find -- I added a few comments.
Great! Thanks for the changes. Last two things:
undefined
.Other than that this looks good!
ping @gkjohnson. Is there anything else you want me to add?
@MichaelKovalchuk Sorry I've been less available for the last week! I added one more comment but other than that this looks ready to go. Once the className concern is resolved I'll get this merged!
Thanks again!
@MichaelKovalchuk looks like the tests are failing -- maybe call removeAttribute
if className
is falsey so the attribute is removed entirely or we could update the tests to check if the class value is falsey (I think I prefer removing it)
I added condition to add/remove class attribute based on the className prop. The tests should pass now.
Thanks! I'll get it pushed to npm soon
CustomElement doesn't store behavior properties. I had to access
this.element
to retrieve them Added classes support.