Open ffxsam opened 8 years ago
I have the same problem. Did you find a solution?
Update: it seems the iframe doesnt have to be in the DOM. If a material-ui TextField contains a string with the embed code, flowrouter throws an error.
Never got a solution. What do you mean it doesn't have to be in the DOM? If something's not in the DOM, then it's not going to be displayed. Is material-ui the issue then?
I mean that the iframe wasn't rendered as an iframe in the DOM. The embed code (<iframe src="...") was only in the value of a (controlled) TextField, the string passed down as a prop. I'm not sure how FlowRouter gets into the way.
Update: Actually, inserting an iframe is not a problem - the error only occours if a controlled TextField contains an embed code with an iframe in it.
Update 2: Now this gets interesting: <iframe src="..."></iframe>
not works, but <iframe src='...'>
does.
In an app I'm working on, a user can edit raw HTML descriptions to embed YouTube videos (iframe). I'm seeing this error in the console when I do that: