-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EuiCodeBlock - Copy Paste Experience broken as clicking on Copy Icon also copies Line Numbers #158644
Comments
Pinging @elastic/eui-team (EUI) |
Pinging @elastic/appex-sharedux (Team:SharedUX) |
@achyutjhunjhunwala We'll have a fix out soon - thank you so much for finding/flagging this. Just to check, is there a need for the fix to be backported to the next v8.8 release? Or is just v8.9 fine? |
@cee-chen Thank you so much for prioritising the fix 👍🏼 . For our use case, we are fine with 8.9 as well. |
@cee-chen I had a chat with @LucaWintergerst and it seems it would really good to have this backported to 8.8 as the current experience is broken and also 8.8.1 is due in 1 week, which means if we can backport it to 8.8, we will also be able to catch the 8.8.1 ship. |
No problem! We can certainly get a backport fix in before 8.8.1 FF. |
This is a backport EUI upgrade to Kibana v8.8.1 containing an `EuiCodeBlock` bugfix requested by the Observability team: #158644 (comment) ## [`77.1.5`](https://github.com/elastic/eui/tree/v77.1.5) **Bug fixes** - Fixed `EuiCodeBlock` potentially incorrectly ignoring lines ending with a question mark when using the Copy button. ([#6794](elastic/eui#6794)) - Fixed `EuiCodeBlock` to not include line numbers when copying content ([#6824](elastic/eui#6824)) - Fixed the expanded row animation on `EuiBasicTable` causing cross-browser Safari issues ([#6826](elastic/eui#6826)) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
With #158976, this should now be fixed in the next 8.8 release. As a heads up, main/8.9 won't be fixed until the next EUI upgrade PR, which should be happening sometime next week. Feel free to close this issue out or leave it open until then, up to you! |
## Summary `eui@81.2.0` ⏩ `eui@81.3.0` ✨ Highlights: - fixes #158644 - Adds a new Timeline icon for use within `EuiMarkdownEditor` (cc @kqualters-elastic) - Expandable rows used within `EuiBasicTable` and `EuiInMemoryTable` now have a faster and snappier expand animation ___ ## [`81.3.0`](https://github.com/elastic/eui/tree/v81.3.0) - Added `timelineWithArrow` glyph to `EuiIcon` ([#6822](elastic/eui#6822)) **Bug fixes** - Fixed `EuiCodeBlock` potentially incorrectly ignoring lines ending with a question mark when using the Copy button. ([#6794](elastic/eui#6794)) - Fixed `EuiCodeBlock` to not include line numbers when copying content ([#6824](elastic/eui#6824)) - Fixed the expanded row animation on `EuiBasicTable` causing cross-browser Safari issues ([#6826](elastic/eui#6826))
Kibana version:: 8.8
Describe the bug:
When copying the code using Copy Icon from a component which used EuiCodeBlock, and if it has Line Numbers enabled, also copies the Lines numbers, breaking the copy/paste experience
Steps to reproduce:
Expected behavior:
Line numbers should not be copied
Screenshots (if relevant):
As we are introducing the new APM Serverless Onboarding Tutorial, which is required for the next Serverless Checkpoint, it would be great to have it fixed before that. Ideally before 8.9.
#155371
The text was updated successfully, but these errors were encountered: