Added preventDefault to backspace keypress