Requires template elements
doublemarked opened this issue · 7 comments
doublemarked commented
The modal currently fails if the template contains no elements (just text).
btford commented
not sure if it should throw or automagically wrap the elt. thoughts?
doublemarked commented
I would opt for automatic wrapping.
stryju commented
does it make sense?
modal should be a self contained element, like a window etc - so making it wrap the content makes no sense IMO
how would you even style it? :-)
doublemarked commented
My head isn't in this problem any more, but @stryju you may be right. Perhaps the proper solution is to throw an exception if there's no element. That is probably a more disciplined approach.
btford commented
Landed in v0.2.2
.
btford commented
My resolution, by the way, was to throw if there are just text nodes.
stryju commented
🍻