Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SeqFrag not working when svgAttrs / svgTags are imported #209

Open
devkat opened this issue Jul 6, 2020 · 0 comments
Open

SeqFrag not working when svgAttrs / svgTags are imported #209

devkat opened this issue Jul 6, 2020 · 0 comments

Comments

@devkat
Copy link

devkat commented Jul 6, 2020

Example:

import scalatags.JsDom.all._
import scalatags.JsDom.svgAttrs._
import scalatags.JsDom.svgTags._

        text(
          y := 20,
          children.toList.map(ChildView.render)
        )

Error:

[error]  found   : List[scalatags.JsDom.TypedTag[org.scalajs.dom.svg.TSpan]]
[error]     (which expands to)  List[scalatags.JsDom.TypedTag[org.scalajs.dom.raw.SVGTSpanElement]]
[error]  required: scalatags.JsDom.Modifier
[error]     (which expands to)  scalatags.generic.Modifier[org.scalajs.dom.raw.Element]
[error]           elems.toList.map(ElementView.render)

Workaround:

import scalatags.JsDom.all._
import scalatags.JsDom.svgAttrs.{SeqFrag =>_, _}
import scalatags.JsDom.svgTags.{SeqFrag =>_, _}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant