hyperlink-academy/garden

when creating multiple cards in a row, the previous title you typed in appears on the second attempt

silky opened this issue · 2 comments

silky commented

i would expect this should be cleared if the card was actually created (it was).

to reproduce:

  1. double-click to make a new card, type a title,
  2. enter some text in the body; click off somewhere
  3. double-click again to make another card, observe that the title is already filled in with the original one!

expected behaviour:

it would be empty; just as it was the first time!

Thanks for the report! Should be fixed by 31ba01d

I went with just clearing the field when the modal is opened/closed which I think is the most predictable behavior.

silky commented

thanks for the prompt response!

I went with just clearing the field when the modal is opened/closed which I think is the most predictable behavior.

probably that's fine; but for what it's worth i think places like github/trello etc only do the clearing on commiting the save, in part because it's a convenient way to save a draft, and in part because - and this happened to me a few times - you can accidentally close the card without meaning to, before saving it! :)