preact-mdl icon indicating copy to clipboard operation
preact-mdl copied to clipboard

Not deleting attributes.className.

Open saboya opened this issue 8 years ago • 0 comments

Hi. I came across an issue that, if I use className, when the preact components re-renders, the class attributes in my elements are lost. If I use "class", everything just works. I realize that preact recommends class over className, but since className was supposed to work as well (at least according to https://github.com/developit/preact/issues/103), I'd consider this a bug.

This is a simple change, but I imagine this code is here for a reason.

Thanks in advance!

saboya avatar Feb 27 '17 15:02 saboya