philomena-dev / philomena

Next-generation imageboard
GNU Affero General Public License v3.0
92 stars 36 forks source link

Fixed resetting of the auto-completed query not working correctly #368

Closed koloml closed 1 week ago

koloml commented 1 week ago

Before you begin


Noticed that search fields started resetting the original query incorrectly. Instead of restoring the whole query, field gets only the selected term:

Screencast from 2024-11-14 22-35-08.webm

First commit fixes that:

Screencast from 2024-11-14 22-37-26.webm

Second commit just forces the selection to move to the end of the selected term instead of the end of the whole query:

Screencast from 2024-11-14 22-44-01.webm