[GH-ISSUE #1395] Saved filter: Editing the complex expression is broken #6382

Closed
opened 2026-04-20 16:58:34 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @scosu on GitHub (Sep 3, 2025).
Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/1395

Description

When trying to edit a new or existing saved filter the cursor jumps around in the filter expression field, it removes whitespaces, and the completion doesn't work as expected.

To reproduce this issue try to create a new saved filter and try to type this filter:

done = false && project in Inbox,Triptomars && startDate < now

Vikunja Version

v1.0.0-rc1

Browser and version

Firefox 141.0.2

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

No response

Originally created by @scosu on GitHub (Sep 3, 2025). Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/1395 ### Description When trying to edit a new or existing saved filter the cursor jumps around in the filter expression field, it removes whitespaces, and the completion doesn't work as expected. To reproduce this issue try to create a new saved filter and try to type this filter: ``` done = false && project in Inbox,Triptomars && startDate < now ``` ### Vikunja Version v1.0.0-rc1 ### Browser and version Firefox 141.0.2 ### Can you reproduce the bug on the Vikunja demo site? Yes ### Screenshots _No response_
GiteaMirror added the area/filters label 2026-04-20 16:58:34 -05:00
Author
Owner

@kolaente commented on GitHub (Sep 3, 2025):

Unable to reproduce this. The filter works, even though the highlighting is not quite correct:

Image
<!-- gh-comment-id:3248873447 --> @kolaente commented on GitHub (Sep 3, 2025): Unable to reproduce this. The filter works, even though the highlighting is not quite correct: <img width="612" height="110" alt="Image" src="https://github.com/user-attachments/assets/c77c10bd-b5bd-45b4-84f5-7462664239ce" />
Author
Owner

@scosu commented on GitHub (Sep 3, 2025):

It is about the typing, you can start with

done = false && startDate < now

Then try to type in the project filter in between them

done = false && project in inbox, trip to mars && startDate < now

After typing the comma the cursor always seem to jump to the end (behind now).

Also when for example using backspace to delete now it also immediately deletes the whitespace in front of that which is quite confusing.
And if you navigate through the expression with cursor keys the cursor stops at different positions depending on when you go forwards or backwards.

<!-- gh-comment-id:3248960031 --> @scosu commented on GitHub (Sep 3, 2025): It is about the typing, you can start with ``` done = false && startDate < now ``` Then try to type in the project filter in between them ``` done = false && project in inbox, trip to mars && startDate < now ``` After typing the comma the cursor always seem to jump to the end (behind now). Also when for example using backspace to delete `now` it also immediately deletes the whitespace in front of that which is quite confusing. And if you navigate through the expression with cursor keys the cursor stops at different positions depending on when you go forwards or backwards.
Author
Owner

@kolaente commented on GitHub (Sep 4, 2025):

Is this the same issue? https://community.vikunja.io/t/v1-0-0-rc1-can-not-create-filter-with-in-operator/4023

<!-- gh-comment-id:3254115306 --> @kolaente commented on GitHub (Sep 4, 2025): Is this the same issue? https://community.vikunja.io/t/v1-0-0-rc1-can-not-create-filter-with-in-operator/4023
Author
Owner

@scosu commented on GitHub (Sep 12, 2025):

I don't think this is the same issue, I think the issue I am seeing is only in the frontend, not a functional issue.

I will try to create reproducable steps that trigger it for me:

  1. Enter the full expression in the demo for a new saved filter: done = false && project in Inbox, Trip to Mars && startDate < now
  2. Use the left cursor to go back to the end of Trip to Mars.
  3. Enter a ,
  4. For me the cursor jumps to the end of the full expression, behind now
<!-- gh-comment-id:3285715855 --> @scosu commented on GitHub (Sep 12, 2025): I don't think this is the same issue, I think the issue I am seeing is only in the frontend, not a functional issue. I will try to create reproducable steps that trigger it for me: 1. Enter the full expression in the demo for a new saved filter: `done = false && project in Inbox, Trip to Mars && startDate < now` 2. Use the left cursor to go back to the end of `Trip to Mars`. 3. Enter a `,` 4. For me the cursor jumps to the end of the full expression, behind `now`
Author
Owner

@kolaente commented on GitHub (Nov 16, 2025):

Fixed in 067cc5674b and 675a550247, please check with the next unstable build (should be ready for deployment in ~30min, also on try).

<!-- gh-comment-id:3538832220 --> @kolaente commented on GitHub (Nov 16, 2025): Fixed in https://github.com/go-vikunja/vikunja/commit/067cc5674b57c10bcaf403e28857702804536315 and https://github.com/go-vikunja/vikunja/commit/675a550247d4369da4fda7167a0799f03efeebde, please check with the next unstable build (should be ready for deployment in ~30min, also on [try](https://try.vikunja.io)).
Author
Owner

@vikunja-bot-app[bot] commented on GitHub (Nov 16, 2025):

This issue has been fixed in 067cc56, please check with the next unstable build (should be ready for deployment in ~30min, also on the demo).

<!-- gh-comment-id:3538832356 --> @vikunja-bot-app[bot] commented on GitHub (Nov 16, 2025): This issue has been fixed in [`067cc56`](https://api.github.com/repos/go-vikunja/vikunja/commits/067cc5674b57c10bcaf403e28857702804536315), please check with the next unstable build (should be ready for deployment in ~30min, also on [the demo](https://try.vikunja.io)).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#6382