Append element on show instead of on init.#26
Append element on show instead of on init.#26pirxpilot merged 2 commits intocomponent:masterfrom dy:master
Conversation
|
@pirxpilot, @juliangruber, @rauchg please merge) |
|
Doesn't it make things even worse? Won't we be adding overlay multiple times if someone calls |
|
An element can’t be added multiple times to the DOM. Just test in console: var d = document.createElement('div');
document.body.appendChild(d);
document.body.appendChild(d);That is safe behavior. For now if overlay was hidden (via I have a solution for dialog, but it needs the new version of the overlay-component first. |
|
Good point. Still why not fix It seems less disruptive than changing this component. |
|
I’ve made a PR to component-dialog component/dialog#30. |
|
You know what: you're right on this one. It only makes sense that we add element in Also could you hold on for a moment on dialog changes. I'd like to have another look. |
|
Right, whitespaces. Done. |
|
Thanks. 0.3.5 tagged. |
|
Got it, thanks) |
Related to component/dialog#21