Crash when 'input' event handler for input[type=color] changes the input type