online icon indicating copy to clipboard operation
online copied to clipboard

Search function in Writer sometimes selects the word, which then modifies the search result

Open JMoVS opened this issue 2 years ago • 5 comments

Describe the bug Sometimes the search result gets selected which means that subsequent typing will modify the search result rather than just search

To Reproduce Steps to reproduce the behavior:

  1. Open a document
  2. Start using the search function
  3. type some letters until you don't have a hit anymore
  4. then revert until you do
  5. do that a bit back and forth
  6. at some point, the input focus will switch to the word and instead the document gets modified rather than the search bar

Expected behavior while typing in the search bar, never switch to typing in the document

Actual behavior document gets modified even though user wanted to modify the search term

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information)

  • OS: macOS
  • Browser: Firefox, Brave

Additional context Add any other context about the problem here.

JMoVS avatar Jul 06 '23 12:07 JMoVS

With 23.05 I see that search bar looses focus when tab looses focus, so focus goes to the last found word. I will confirm so.

timur-g avatar Jul 07 '23 12:07 timur-g

any news here?

JMoVS avatar Aug 25 '23 11:08 JMoVS

This renders the search useless for some documents...

OS: macOS Browser: Chrome, Safari, Firefox COOLWSD-Version: 23.05.4.2 Collabora Office 23.05.4.2

Test file:

test.odt

Reproduce: Search for "potential"

Jank1310 avatar Oct 18 '23 08:10 Jank1310

I can confirm this issue for writer. I think this happens especially with documents containing tables (with content - as test.odt from above). Maybe it is related to https://github.com/CollaboraOnline/online/issues/7757 I got a report on this for version 24.04.3-2 but in 24.04.5-1 this issue persists.

bbx-github avatar Jul 10 '24 17:07 bbx-github

Same with 24.04.6.1-1

bbx-github avatar Aug 15 '24 15:08 bbx-github

still in 24.04.7-1 can anyone add label 24.04?

bbx-github avatar Sep 03 '24 21:09 bbx-github

This may have been fixed. Please see if you reproduce with the current version. If you do, please explain if that is random while typing in the search bar, or after tab focus is lost, or in some specific situation as with table. And list exact steps and results.

timur-g avatar Feb 26 '25 09:02 timur-g

Hello @JMoVS for the in-depth report and all the other the additional checks with the respective version information!

This has been fixed with https://github.com/CollaboraOnline/online/commit/49e266d69a744ac1dc702ecd5d954dff4c9190b1 and https://github.com/CollaboraOnline/online/commit/4ade1723131fdddf962e32fe4a20e136f4f739e4

pedropintosilva avatar Mar 28 '25 09:03 pedropintosilva