Minor visual bug when backspacing on the "amount" for adding transactions #43

Closed
opened 2025-12-28 23:24:35 +01:00 by adam · 2 comments
Owner

Originally created by @sininen-blue on GitHub (Jul 9, 2025).

Originally assigned to: @eitchtee on GitHub.

Image

Minor visual issue where backspacing on the amount section doesn't update where the comma is, it only updates when a new character is placed

This doesn't seem to affect the actual transaction

Originally created by @sininen-blue on GitHub (Jul 9, 2025). Originally assigned to: @eitchtee on GitHub. ![Image](https://github.com/user-attachments/assets/6c829783-6466-4309-9c19-0f4e423ed926) Minor visual issue where backspacing on the amount section doesn't update where the comma is, it only updates when a new character is placed This doesn't seem to affect the actual transaction
adam added the bug label 2025-12-28 23:24:35 +01:00
adam closed this issue 2025-12-28 23:24:36 +01:00
Author
Owner

@eitchtee commented on GitHub (Jul 9, 2025):

Yes! I agree this is somewhat annoying, however it is a caveat of Alpine's x-mask which we use to properly format the amount field, the comma/dot is only updated on new input or when you click out of the field.

At the time I couldn't find a sane money input plugin that worked as I wanted, so I stuck with the next best thing I could find. I will have another look to see if we can improve this somehow.

@eitchtee commented on GitHub (Jul 9, 2025): Yes! I agree this is somewhat annoying, however it is a caveat of [Alpine's x-mask](https://alpinejs.dev/plugins/mask) which we use to properly format the amount field, the comma/dot is only updated on new input or when you click out of the field. At the time I couldn't find a sane money input plugin that worked as I wanted, so I stuck with the next best thing I could find. I will have another look to see if we can improve this somehow.
Author
Owner

@eitchtee commented on GitHub (Jul 10, 2025):

This will be fixed in the next release

Image

Thanks to people at https://github.com/alpinejs/alpine/discussions/2872

@eitchtee commented on GitHub (Jul 10, 2025): This will be fixed in the next release ![Image](https://github.com/user-attachments/assets/c9f7c5b0-adf2-4f16-85fc-0a5de14da42c) Thanks to people at https://github.com/alpinejs/alpine/discussions/2872
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WYGIWYH#43