carbon-components-angular
carbon-components-angular copied to clipboard
Code Snippet Show More button doesn't seem to be working
What package(s) are you using? "carbon-components": "^10.41.0", "carbon-components-angular": "^4.54.1",
Describe in detail the issue you're having. I have quite a bit of output in a Code snippet box. It is expanded on initial display. There is a Show More button at the bottom, but clicking it just changes it to the Show Less button. Clicking the Show Less button just collapses the last line.
Is this issue related to a specific component? This was working before we upgraded to Carbon V10 and Angular V4. Not sure when it broke.
What did you expect to happen? What happened instead? What would you like to see changed?
I expected the output to initially be collapsed and then expanded after clicking the Show More button.
What browser are you working in? Happens with both Firefox and Chrome.
What version of the Carbon Design System are you using? V10
Please create a reduced test case in CodeSandbox
Your sandbox appears to have the same problem. https://angular.carbondesignsystem.com/?path=/story/components-code-snippet--multi
Additional information
This is a scrollable page with a lot of data before this screenshot was taken. This is the initial display without clicking Show More.
Do you agree this is a bug in carbon-components-angular?
I've seen the same issue
Closing issue as it was resolved in v5. The fix to it required a breaking change.