cch5ng / recipe-box-firebase

Recipe application using Firebase backend and Google login.
http://cch5ng.github.io/recipe-box-firebase
0 stars 2 forks source link

edit recipe modal appears to autosave edits #9

Closed cch5ng closed 8 years ago

cch5ng commented 8 years ago

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)

cch5ng commented 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

cch5ng commented 8 years ago

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

cch5ng commented 8 years ago

fixed: