FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ClipboardCopy unusable in forms · Issue #3443 · patternfly/patternfly-react · GitHub

ClipboardCopy unusable in forms #3443

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL