Repository navigation
Press a copy control once it has drawn through one copy-control helper - #5911
Merged
Merged
Conversation
The code block's Copy row (code.copy) and the heading's copy-link row (heading.link.copy) each waited for the control's definition and update before clicking its trigger, the code block's comment pointing at the heading's copy. That wait is the copy control's own rule, so copy-control.js now keeps it as pressCopy beside copyTrigger, and both rows call it. No behavior changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The code block's Copy row (
code.copy, added in #5866) and the heading's copy-link row (heading.link.copy) each repeated the same three steps: wait for the copy control's definition, wait for its update, then click its trigger. The code block's comment pointed at the heading's copy of those steps. Waiting until the control has drawn its button is the copy control's own rule, socopy-control.jsnow keeps it aspressCopy, besidecopyTrigger, and both rows call it. No behavior changes.Verified with
test_code_copy_on_plain_http_machine_name(click and Enter) andtest_render_heading_links.py(6 passed), plus the browser type check andpre-commit. No new test, since both paths keep their existing coverage. The nightly review of recent commits found the duplicate.