input width will be reset by updating placeholder. fixes #322
updated test