When I add text-overflow: ellipsis to an input element, the element is scrollable. When I place my cursor over the element, I can scroll left and right as if the text was full width and not truncated, although there is no text after the .... How do I stop this behaviour!?
input {
width: 180px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
<input value="A string that is longer than the input field" />