actualbudget / actualbudget/actual
[Bug]: When focusing Notes field to select text - it removes a space in the text on unfocus
- Langage dominant
- TypeScript
- Étoiles
- 28.7k
- Forks
- 3k
- Merge moyen
- 2 j 11 h
- PR mergées (30 j)
- 65
Description
### Verified issue does not already exist?
- [x] I have searched and found no existing issue
### What happened?
When focusing 'Notes' field to select text - it removes a space in the text on unfocus for some fields.
This messes up rules that involve matching text on notes.
The notes will show:
`To 1. Main EndToEndID: FRI From 2. Savings`
When the text input is focused, the text in the text input is:
`To 1. MainEndToEndID: FRI From 2. Savings`
This doesn't happen to all fields,
All my fields are imported from GoCardless/Danske bank - but I am not sure if this is the only instance.
# Other potentially useful debugging info.
Network Activity:
When I first click the field, the app sends a POST request named sync.
Clicking the field again doesn't send any requests.
If I click for a 3rd time and edit the text and unfocus, it sends another sync POST request.
The payload looks like this (trimmed and anonymized):
```
transactions
$
notes
S:To 1. MainEndToEndID: FRI From 2. Savings
```
So it seems the initial click is sending off a post request to edit the field and remove the space for some reason?
### How can we reproduce the issue?
Open a transaction imported via GoCardless (from a DanskeBank account) - not sure if others are impacted, or if manual ones are impacted I don't have other accounts
Look at the Notes field. e.g.
`To 1. Main EndToEndID: FRI From 2. Savings`
Click into the Notes field. The text in the input changes to:
`To 1. MainEndToEndID: FRI From 2. Savings`
Click outside the field - the space stays missing and the change is saved
### Where are you hosting Actual?
Pikapods
### What browsers are you seeing the problem on?
Chrome
### Operating System
Windows 10
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.