[BUG] Editting flashcards immediately shifts to the next card

This issue has been tracked since 2023-02-17.

Describe the bug
image
If I click on the above button, it immediately shifts to the next card. I have no idea if it is considered red, blue, or green difficulty - I'm not even sure what happens or why it shifts. The expected behavior after an edit is to remain on the card and wait for a red,blue or green button press, on?

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain the bug. This could be the logs in the developer console (CTRL + SHIFT + i).

Versions (please complete the following information):

  • OS: [e.g. iOS] Ubuntu
  • Obsidian version: [e.g. v0.12.4] Latest as of current date
  • Plugin version: [e.g. v1.4.9] Latest as of current date
  • If on desktop, Installer version: [run this.navigator.appVersion on the developer console, e.g. 5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) obsidian/0.12.3 Chrome/89.0.4389.128 Electron/12.0.6 Safari/537.36"]

Additional context
Add any other context about the problem here (e.g. the markdown producing the error).

maggaou wrote this answer on 2023-02-20

I can confirm that this happens sometimes. I think it can be hard to reproduce because it doesn't happen always.

AB1908 wrote this answer on 2023-03-20

This is painful if it doesn't always happen. That said, I was the one who designed it this way. The intention is that if you're editing a card, you know what the answer immediately is and thus can't really test yourself, so I set it to auto skip. The exact line is

this.currentDeck.nextCard(this);
. It does not skip if you haven't edited the answer since there's a chance someone clicked it accidentally, made no changes and submitted and still want to test themselves on the card.

More Details About Repo
Owner Name st3v3nmw
Repo Name obsidian-spaced-repetition
Full Name st3v3nmw/obsidian-spaced-repetition
Language TypeScript
Created Date 2021-01-30
Updated Date 2023-03-19
Star Count 817
Watcher Count 9
Fork Count 94
Issue Count 174

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date