Revert "Merge pull request #14364 from EverythingMe/944796-clear-input-x...

..."

This reverts commit 70fb206796297aa6595f2813a19d7332255b4bc7, reversing
changes made to bf26668567e91ac414b22612bf9a4be2359416fb.