Describe the bug
When lineNumbers = true and isCopyable = true the copied text contains code block content as well as line numbers.
This bug references elastic/kibana#158644.
Environment and versions
- EUI version: v81.0.0
- Browser: all (tested on Chrome, Safari and Firefox)
- Operating System: all (tested on MacOS)
To Reproduce
Steps to reproduce the behavior:
- Go to https://eui.elastic.co/#/editors-syntax/code#code-block
- Click on Playground
- Enable
lineNumbers and isCopyable
- Click the copy icon
- See that the copied text contains line numbers
Expected behavior
The copied text should not contain line numbers.
Minimum reproducible sandbox
https://codesandbox.io/s/young-fast-rh60ds?file=/demo.js
Describe the bug
When
lineNumbers = trueandisCopyable = truethe copied text contains code block content as well as line numbers.This bug references elastic/kibana#158644.
Environment and versions
To Reproduce
Steps to reproduce the behavior:
lineNumbersandisCopyableExpected behavior
The copied text should not contain line numbers.
Minimum reproducible sandbox
https://codesandbox.io/s/young-fast-rh60ds?file=/demo.js