From 8bea9eeddfa6e2e602f32c7130e39a8eb5f191ae Mon Sep 17 00:00:00 2001 From: Andrew Fontaine Date: Thu, 6 Jun 2019 09:36:17 +0000 Subject: Add a New Copy Button That Works in Modals This copy button manages a local instance of the Clipboard plugin specific to it, which means it is created/destroyed on the creation/destruction of the component. This allows it to work well in gitlab-ui modals, as the event listeners are bound on creation of the button. It also allows for bindings to the `container` option of the Clipboard plugin, which allows it to work within the focus trap set by bootstrap's modals. --- changelogs/unreleased/copy-button-in-modals.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 changelogs/unreleased/copy-button-in-modals.yml (limited to 'changelogs/unreleased') diff --git a/changelogs/unreleased/copy-button-in-modals.yml b/changelogs/unreleased/copy-button-in-modals.yml new file mode 100644 index 00000000000..bc18eb9ab26 --- /dev/null +++ b/changelogs/unreleased/copy-button-in-modals.yml @@ -0,0 +1,5 @@ +--- +title: Add a New Copy Button That Works in Modals +merge_request: 28676 +author: +type: added -- cgit v1.2.1