Closed Confidenceman02 closed 2 years ago
fixes #563
Using attribute does set the css class correctly however the attribute name needs to be class instead of className.
Using className will set classes as classname in dom nodes and className in svg nodes which is incorrect.
classname
className
Here we can see the incorrect attribute name. On the left we should be seeing a handsome elm-select. No styles are applied.
elm-select
And with correct class.
Many apologies for this oversight.
So just to confirm, class works with both SVG and HTML nodes?
class
Published as 17.0.4
fixes #563
Context
Using attribute does set the css class correctly however the attribute name needs to be class instead of className.
Using className will set classes as
classname
in dom nodes andclassName
in svg nodes which is incorrect.Here we can see the incorrect attribute name. On the left we should be seeing a handsome
elm-select
. No styles are applied.And with correct class.