Crash when attempting to change input type while dismissing datalist suggestions