actualbudget / actualbudget/actual

[Bug]: Firefox unable to change budget's "hold for next month" when budget is zero

Aperta
#4,985 5 commenti 1 reazione 0 assegnatari Vedi su GitHub
user interface
Lingua principale
TypeScript
Stelle
28.7k
Fork
3k
Merge medio
2g 11h
PR unite (30g)
65

Descrizione

### Verified issue does not already exist?

- [x] I have searched and found no existing issue

### What happened?

Clicking the `To Budget` amount after changing it to zero doesn't show the `Reset next month's buffer` but the `hold this amount:` with the 0,00 value and if you click on `Hold` nothing changes (regardless of the input amount)

![Image](https://github.com/user-attachments/assets/bfe0746d-1808-49c7-8194-cde84a5b2ae7)
> _`hold this amount:` popup is shown when `To Budget` is 0,00 instead of the `Reset next month's buffer` button_

You need to click the value to show the `hold this amount:` window, click out, then click again to then see the `Reset next month's buffer` button

![Image](https://github.com/user-attachments/assets/e05d664e-8dbf-4b78-95fd-d428d6973041)
> _`Reset next month's buffer` button is shown after clicking out of the `hold this amount:` popup without clicking on the `Hold` button_

### How can we reproduce the issue?

1. Go to budget tab and click `To Budget` amount
2. Click `Hold for next month`
3. Click on `Hold` with the full amount
- `To Budget` is now 0,00
4. Click the value again
- Instead of the `Reset next month's buffer` button, it shows the `hold this amount:` field again with 0,00
5. Type anything and click on `hold` again
- No changes occur

To fix this you need to click the `To Budget` amount so it shows the `hold this amount:` popup, then click out without clicking on the `Hold` button
Only then, when clicking on the `To Budget` amount again, it shows the `Reset next month's buffer`

### Where are you hosting Actual?

None

### What browsers are you seeing the problem on?

Firefox

### Operating System

Windows 11

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.