Closed cch5ng closed 8 years ago
when I open edit modal, should always get the latest string based on obj
state.steps obj or state.ingredients obj
b/c latest string might not have been saved to db
also need to doublecheck there was some odd scenario where one recipe was getting inserted to db twice; on latest ui test, only one gets created for addRecipe; also verified if I save from editRecipe, there is no new recipe generated
but would like to doublecheck this later on
fixed:
right now the modal is getting input text and text area values from state
state is getting update onchange from the input fields
result is that if you make changes and close the modal, the data will get saved anyhow (there is no real diff to user b/t the save button and close button; although close only affects state and not db)
this seems buggy though
also I wonder if this is causing the weird automatic line breaks whenever I edit the text area box (issue #7)