4 of 7 edited tags

When editing a question, please don't reset the tags field if input validation fails

Steps to repro:

  1. Edit a question
  2. Modify the tags field (should still be valid)
  3. Modify the title so it's invalid (either blank or 1 char)
  4. Click submit

Expected result:

  • Error message saying that the title is invalid
  • Tags field retains the edits made from above

Actual result:

  • Error message saying that the title is invalid
  • Tags field is reverted to what it was originally when editing began
  • Jon is very annoyed

I get this most often on old questions where short titles were allowed, but I just got it now on a question where the title is too long for the new validation rule.


Note: there is also some of this kind of behaviour with the title field, but it works fine (if you erase the whole field, it gets rolled back to what it was before; but if you don't erase all of it, it keeps the edit, although it doesn't submit).