Revert drag and drop and input/textarea changes on failure.