The control input width is initially set using the width of the placeholder text. This is expected, but once the control gets focus and the placeholder is cleared, the width should shrink. The consequence of this is that when the control input is too wide, it is pushed down to the next line.
Best explained with a gif:

Here is the CodePen used to produce this bug.