-
Notifications
You must be signed in to change notification settings - Fork 975
Findbar lags sometimes losing characters #3876
Comments
This is possible related issue #3730 I think online suggestions are causing delay as well, but I haven't digged into the code to check that, decided worth mentioning it here :) Those suggestions have to be async, not waiting for all of them to complete to show the suggestions list. |
@BrendanEich or anyone else that can reproduce, please confirm that while you have it in a state of reproducing (make sure of this first!), can you turn off |
@diracdeltas honestly I'm not sure I've encountered this. I know @BrendanEich has mentioned it a few times and asked me to create an issue. |
Brendan has lag with both |
@diracdeltas Sorry I've thought of the URL bar, not the FIndbar. I have never had problems with the Findbar, rather than the URL bar (which have a lot of glitches tho, doesn't always autocomplete, text can't be "cut" sometimes etc). Please ignore my comment in this thread regarding the FIndbar. |
i definitely see it slower some times than others, but never enough to lose any characters. trying out a fix now. |
This changes the findbar from a controlled React element to a mostly-uncontrolled one, so the characters show up in the input field before React state is propagated. When the frame is changed or the findbar component is created for the first time, the input is restored from saved state. Auditors: @bbondy Test Plan: 1. open some tabs 2. cmd+f to find a string in one of the tabs 3. switch to a different tab, cmd+f for a different string 4. switch back to the first tab - the original input should still be in the findbar
fixed by 27bd13f i think, please reopen if not |
I am still losing the "om" in ".com". I see this in both 12.6 and current master. |
further sleuthing has revealed an interesting sequence. @diracdeltas - please DL this GIF and open it in mac preview. Then step through frames 76 - 84. |
@bradleyrichter it seems it is still happening, but I can not reproduce it. Good you recorded it in a GIF. Now that I am looking into the frames one by one we can clearly see another issue I have reported some time ago #4219 Could be possibly related, or not. |
@Sh1d0w It does seem related. |
@bradleyrichter i'm confused why you reported this here since your screenshot shows the urlbar, not the findbar. can this be closed? if you're still seeing this in the latest master, please open a new issue. |
I think a search for URL bar brought this up since it became mixed. I'll make a new issue. |
Did you search for similar issues before submitting this one?
Yes.
Describe the issue you encountered:
Sometimes when you open the findbar and start typing there is a noticeable lag before the characters show up. We think it might be blocking on finding all of the characters you typed and perhaps debouncing that query would fix it.
Expected behavior:
macOs
0.12.0
1.
2.
3.
The text was updated successfully, but these errors were encountered: