Skip to content

[ClipboardCopy] - expose input onBlur, onFocus event handlers and name, id for clipboard copy component input #12178

@gautamkrishnar

Description

@gautamkrishnar

Is this a new component or an extension of an existing one?
Existing one

Describe the feature
We need to expose input onBlur, onFocus event handlers for clipboard copy component so that it can be used for validations via external libraries.

<ClipboardCopy
  onBlur={(e) => validate(e)} // this wont work
  onFocus={(e) => focus(e)} // this wont work
  name="Hello word" // wont work
  id="hey" // wont work
  copyAriaLabel="Copy basic example"
  hoverTip="Copy"
  clickTip="Copied">
    This is editable
</ClipboardCopy>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions