Commit 42741154 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch 'jdb/fix-copy-to-clipboard-ff' into 'master'

Target pre tag on copy to fix firefox copy bug

See merge request gitlab-org/gitlab!49648
parents 70da6178 b99b6887
......@@ -242,7 +242,7 @@ module BlobHelper
def copy_blob_source_button(blob)
return unless blob.rendered_as_text?(ignore_errors: false)
clipboard_button(target: ".blob-content[data-blob-id='#{blob.id}']", class: "btn btn-sm js-copy-blob-source-btn", title: _("Copy file contents"))
clipboard_button(target: ".blob-content[data-blob-id='#{blob.id}'] > pre", class: "btn btn-sm js-copy-blob-source-btn", title: _("Copy file contents"))
end
def open_raw_blob_button(blob)
......
---
title: Fix copy to clipboard on Firefox
merge_request: 49648
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment