Please check this fiddle: https://jsfiddle.net/f4cufkv3/1/
The input field is placed in a transition, as result it gets a wrong styling:
- its display mode is set to "block", so its width is wrong (does not take the width of the container)
- it always has the "active" state, so its rendering is also wrong.
I hack it by forcing its display mode to "flex" to make it as wide as its container, but this doesn't fix the "active" state issue.