dsfai2020 / Task-and-Nutrition-Manager

An agile planning application that tracks tasks, ideas and nutrition goals. This app is designed to assist with everyday productivity, progress tracking and fitness.
1 stars 0 forks source link

Buttons aren't generating correctly #61

Closed dsfai2020 closed 3 months ago

dsfai2020 commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to Add Another Button
  2. Click on the button.
  3. Scroll down
  4. See error

Expected behavior Clicking on the Add Another button should create a duplicate of the UI component (Title, Story, Estimate etc...) directly below it.

Screenshots image image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

dsfai2020 commented 3 months ago

bug - state management with counter not quite there but close

bug - buttons are now generating correctly but the default creates 3 with the same name because of default state

image

After making these adjustments the ui generated the content as desired. Every time the button was clicked a new ui displayed.