placeholder of inline element get zero height
Opened this issue · 0 comments
ffuubarbuzz commented
placeholder get zero height If target element is inline, because target element's height is based on it's content, and placeholder's height is based on CSS height
property, which does nothing to inline element. We can solve this few ways :
- Always use
<div>
for placeholder, since we're setting size explicitly there should be no issues with element-specific styles - Add
display: block
to placeholder element, which should also work despite other display value of target element, since we're setting size explicitly - Deep clone element, which is expensive and may lead to unpredictable consequences
I'd go with first option, what do you think? I'd send PR if you're ok with it.