Clojurians
#reagent
<
2016-02-28
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

martinklepsch20:02:05

what's the proper way to get an xlink:href attribute to work?

[:svg {:viewBox "0 0 16 16"}
 [:use {"xlinkHref" (str icon-uri "#" name)}]]
anything I'm trying just yields no attr at all

martinklepsch20:02:34

tried :xlink-href :xlink:href the one above and various others I forgot

thomas21:02:50

I keep getting this error:

RangeError: Maximum call stack size exceeded at 
on render… not sure what’s causing it...

thomas21:02:07

trying to modify the reagent-forms example.

gadfly36121:02:57

@martinklepsch This is an absolute shot in the dark (haven't done svg stuff), but maybe try nesting an inner map. Something like {:xlink {:href ...}}

thomas21:02:13

solved my problem!!! update to the latest version of Reagent!!! simple_smile

juhoteperi22:02:40

@martinklepsch: Are you using 0.6-alpha? Namespaced attributes require React 0.14