Skip to content

SVG changing className doesn't work #1139

Closed
@forresto

Description

@forresto

Still doesn't work in 0.9.0-rc1

Workaround for now:

componentDidUpdate: function (prevProps, prevState) {
  // HACK to change SVG class
  var c = "port-circle-small fill route"+this.props.route;
  this.refs.circleSmall.getDOMNode().setAttribute("class", c);
},

refs #1072

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions