-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad bug in /post editor (needs help tracing/reproducing) #698
Comments
Hello! I tried to reproduce this bug on Chromium 89.0.4389.82, but couldn't do so, for me the publish button is operable and the cursor didn't jump when I clicked on the title or tag box. Could you please confirm if I am checking it wrong? plcheck.mp4 |
Thanks so much @sahilsaha7773 , I am not able to replicate it either |
Hi, this seems to be a variant of a bug we couldn't reproduce a few weeks ago, reported by @steviepubliclab and seconded by @RuthNjeri - however none of us were able to reproduce it even on a real-time walkthrough. That makes this pretty tough, but I have a hunch that there's some text in the body text area that is related. So my guess is (and let's try to refine this so we can reproduce it) --
@ebarry if you can send us an exact copy of the text you were using there in https://gist.github.com, and/or a link to the published page that resulted on PublicLab.org (so we can use the text from there as a test string) we can try to reproduce that again. Thanks for working with us on trying to reproduce this bug and fix it! |
(i relayed this to more PL staff as well!) |
Noting @RuthNjeri's notes on this were:
|
OK excellent! Purl was able to share a text that caused this: https://gist.github.com/jywarren/6e62b472b94a1bd83cc5a7653b9b70ed Let's test this out and see. Hmm, that didn't trigger it for me. Aha, though! I see that @ebarry's video shows some links. So i followed what @RuthNjeri said and tried making a link, then clicking the title. This reproduced the bug: Note that it seemed to happen only when the cursor in the rich text area was placed /after/ the link, and not when it was placed before. Gosh, now what is causing this??? We'll have to watch the javascript console, but... is some new code in the editor causing the textarea to be focused??? |
I think it's plausible it's linked to this new code: PublicLab.Editor/src/modules/PublicLab.CustomInsert.js Lines 43 to 65 in cf1fc4a
in the Custom Insert code. That has several |
Moving this to the Editor repo and testing there in GitPod. |
Noting that i can reproduce it in the example demo here. But adding console.log statements after the focus() calls i found above don't trigger, so it may not be those... |
Gosh, i can't find any thing super obvious that would have been causing this. the Fundamentally it looks like an event was handled too broadly -- i.e. clicking on /anything/ on the page after making a link causes the cursor to be moved to the rich text area. Let's see if Woofmark changes could have caused this: https://github.com/jywarren/woofmark YES - was able to reproduce this by booting that up in GitPod. Chasing it further down now.... |
OK, i believe it was this section: https://github.com/jywarren/woofmark/blame/plots2/src/prompts/prompt.js#L70-L76 Trying to disable it. |
Traced it to jywarren/woofmark#3 -- let's revert, and debug another way! |
It was orig a fix for #407 |
Also noting that wasn't a major issue - the table insertion popover wasn't closing except when you manually close it. So i think we are OK to just revert! |
Publishing as |
Published, this will resolve once the new code is pulled into |
Solved in publiclab/plots2#9323 |
The problem
While entering text into publiclab.org/post, two issues happen:
posting.bug.mov
Please show us where to look
https://publiclab.org/post
What's your PublicLab.org username?
Browser, version, and operating system
Chrome (yes i see in the video that Purl's browser needs updating, it is now updated).
The text was updated successfully, but these errors were encountered: