Update input.js

This commit solves de issue 5936.