Describe the issue. What is the expected and unexpected behavior?
Using ClipboardCopy in a form causes form submission when the copy button is clicked. This is because in HTML, a <button> is type="submit" by default and needs to have type="button" to make it act like a regular button.
Please provide the steps to reproduce. Feel free to link CodeSandbox or another tool.
https://codesandbox.io/s/fragrant-cookies-p8eyj
Is this a bug or enhancement? If this issue is a bug, is this issue blocking you or is there a work-around?
bug. No work around. Blocking a feature in OCM, will have to show the user the text without a copy button.
What is your product and what release version are you targeting?
OCM, using PF4, latest stable.
Reactions are currently unavailable
Describe the issue. What is the expected and unexpected behavior?
Using ClipboardCopy in a form causes form submission when the copy button is clicked. This is because in HTML, a <button> is type="submit" by default and needs to have type="button" to make it act like a regular button.
Please provide the steps to reproduce. Feel free to link CodeSandbox or another tool.
https://codesandbox.io/s/fragrant-cookies-p8eyj
Is this a bug or enhancement? If this issue is a bug, is this issue blocking you or is there a work-around?
bug. No work around. Blocking a feature in OCM, will have to show the user the text without a copy button.
What is your product and what release version are you targeting?
OCM, using PF4, latest stable.