Fix for the never-ending loading in browsers without [type="number"] support.