Ayagikei / LifeUp

Pure and highly customizable gamified to-do and habit-forming app.
206 stars 4 forks source link

[Bug] Incorrect Scrolling and Focus Behavior with "Continue to add next task" Option in Add New Task Page #157

Open WantenMN opened 5 months ago

WantenMN commented 5 months ago

Describe the bug In the Add New Task page, when the "Continue to add next task" option is selected, completing the current task does not behave as expected.

Instead of scrolling to the top, and focusing on the Task input field, the page scrolls and focuses on the last focused position of the previous task.

This means that if the previous task was focused on a different input field, such as the "Task Type" option, the page does not scroll to the top and focus on the Task input field as expected.

To Reproduce Steps to reproduce the behavior:

  1. Navigate to the Add New Task page.
  2. Select the "Continue to add next task" option.
  3. Complete the current task.
  4. Observe the page behavior.

Expected behavior After completing the current task with the "Continue to add next task" option selected, the page should automatically scroll to the top, and focus on the Task input field, ensuring a seamless transition for adding subsequent tasks.

Screenshots None

Environments and Version (please complete the following information):

Additional context None