Open Eltaurus-Lt opened 5 months ago
Hi @Eltaurus-Lt I would need your help with two things as I was not able to reproduce the above issue.
Can you provide a mobile app video with showing what you have shared in (Optional) Anything else you want to share?
section. I was able to reproduce the issue where it doesn't show the 'a'
text on pressing Show answer
but at the same time if user manually types b
, I couldn't see it becoming ab
. A video of that showing it would be really helpful.
Secondly I tried it on Anki Desktop, it seems to be working in the same way as mobile, is it possible to show a video of that too where it works fine on desktop. Also the steps to reproduce remains same on desktop ? (As I was not able to find Step 1 there).
Thanks.
Sure
Show Answer
→ Again
→ Type 'b' with the appearing Android on-screen keyboard → Show Answer
. You can see that the typed answer is empty on the back of the card the first time ("2" is the expected answer), while it is correctly displayed as "ab" the second time.Also the steps to reproduce remains same on desktop ? (As I was not able to find Step 1 there).
Step 1 is for AnkiDroid solely, as it is required to disable the default Android input in favor of using the card HTML input field, which is the only input method on desktop as is.
Here is the video that shows the reviewing of the same card as above on Anki desktop as well as its full code: The typed answer is displayed correctly both times: "a" in the first case and "ab" in the second one. (my desktop version is "23.12.1 (1a1d4d54) Python 3.9.15 Qt 6.6.1 PyQt 6.6.1" by the way)
2. (my desktop version is "23.12.1 (1a1d4d54) Python 3.9.15 Qt 6.6.1 PyQt 6.6.1" by the way)
I also just installed "Version 24.04.1 (ccd9ca1a) Python 3.9.18 Qt 6.6.2 PyQt 6.6.1" and tested the card there. It works exactly the same.
Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically
still searching for solutions
I could reproduce on latest beta version.
Checked for duplicates?
Does it also happen in the desktop version?
What are the steps to reproduce this bug?
Basic (type in the answer)
Note Type:Expected behaviour
The back of the card is expected to show, that the submitted answer is 'a'. (it does so on Anki desktop)
Actual behaviour
The back of the card shows that an empty answer was submitted.
Debug info
(Optional) Anything else you want to share?
If the Android keyboard is used to type anything else in the input field after it was modified with JS, the back of the card shows the full answer. E.g., if 'b' is manually typed after step 2 and before step 3, the submitted answer on the back of the card is correctly shown to be "ab".
It looks like AnkiDroid uses a separate variable to track the typed answer, instead of directly reading the value of html element, and this value is updated only when the on-screen keyboard is used. In that case, maybe it is possible to add the call of the updating function into the "Show answer" button as well to ensure that the submitted answer is always the same as what is displayed on the screen?
Research