You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the .js-comment-edit-button button is loaded asynchronously - but GH is smart and is preloading the contents as you move your cursor over the more button (but before you click it). If it has fetched the content before you click, the content is precached - so it renders it asynchronously.
That's why we didn't see it in 99% cases.
Possible solution
I believe that the solution will be dead simple. Instead of finding this .js-comment-edit-button button we should match the "More options…" button. You can match it by querying actionsButton.closest( '[role="button"].timeline-comment-action' ) and from there you can query the form.js-comment-update in parents chain.
Note, we can't match just details element as reactions and one more UI element also use details.
The text was updated successfully, but these errors were encountered:
Steps to reproduce touch
Expected
GH writer gets loaded.
Actual
Regular editor is enabled, you can't turn it into GH writer.
Steps to reproduce poor network
Expected
GH writer is loaded.
Actual
If you don't give it too much time it will fail to load GH writer.
It's a race condition.
While working on functional tests (#281) we noticed that the code listens for clicks in
.timeline-comment-action
element and then tries to find the.js-comment-edit-button
button.However, the
.js-comment-edit-button
button is loaded asynchronously - but GH is smart and is preloading the contents as you move your cursor over the more button (but before you click it). If it has fetched the content before you click, the content is precached - so it renders it asynchronously.That's why we didn't see it in 99% cases.
Possible solution
I believe that the solution will be dead simple. Instead of finding this
.js-comment-edit-button
button we should match the "More options…" button. You can match it by queryingactionsButton.closest( '[role="button"].timeline-comment-action' )
and from there you can query theform.js-comment-update
in parents chain.Note, we can't match just
details
element as reactions and one more UI element also usedetails
.The text was updated successfully, but these errors were encountered: