Closed jdjkelly closed 7 years ago
@jdjkelly this will not be an issue with the next major version of list-view, since takes a very different approach to fit with the glimmer update in 1.13 and 2.0
I'm sorry we didn't get back to this previously, but at this point this repo is essentially unmaintained. Please use @html-next/vertical-collection or ember-collection for similar functionality.
Closing...
Important caveat: I'm unsure if this bug is with list-view or with Ember's RenderBuffer implementation.
It appears that if you try to render a component with a tagName of SVG immediately prior to ember-list-view, list-view's render function throws this error:
I've provided an example here: https://github.com/jdjkelly/list-view-example (just a regular ember-cli project - example is in the application route)
application.hbs looks like this:
svg-component.js looks like this:
When rendering, Ember throws the
Cannot set property className
on this line: https://github.com/emberjs/list-view/blob/master/addon/list-view-mixin.js#L146The
createElement
function callsthis.namespace
- which at this point ishttp://www.w3.org/2000/svg
- so the<div>
gets assigned it. Thus the<div>
ends up with an immutable className and the error is thrown.