i want to set text-overflow ellipsis for an input element. i have the code like below,
.wrapper {
min-width: 0px;
max-width: 100%;
padding: 14px 16px;
line-height: 21px;
position: relative;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-height: 49px;
}
.input {
display: inline-block;
line-height: 1.5;
padding: 5px 7px 4px;
min-height: 20px;
margin: 0px;
}
<div class="wrapper">
<input class="input">
</div>
Now the problem with above style is that the ellipsis is shown always when the input is empty like in screenshot 
how can i fix this. could someone help me with this? thanks.