question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CollapsibleItem expanded doesn't work.

See original GitHub issue

CollapsibleItem doesn’t open initially even if expanded is set to true. I know the prop is being set properly because if I change it to “foo” then React complains that it’s not a boolean, true or false it is happy with. But the collapsible doesn’t initialize open as it should.

I can’t obviously see the problem but it must be around here https://github.com/react-materialize/react-materialize/blob/544429c5c3d1efa1317cd01fe08994d1951d4aa2/src/CollapsibleItem.js#L18

If I set className that goes through correctly, but the “active” class doesn’t get added.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alextrasterocommented, Feb 27, 2018

@sfcgeorge woohoo, please continue reporting bugs ❤️

0reactions
sfcgeorgecommented, Feb 27, 2018

Yay thank you, can confirm it works 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Html collapsible not expanding on click - Stack Overflow
My code seems fine (or maybe it's not), when I try it on online platforms it seems to work but it doesn't work...
Read more >
Expand/Collapse not working on published site | Velo by Wix
I have four menus that can be expanded/collapsed using buttons. They all use the following code structure: The code works as intended in...
Read more >
Collapse or expand parts of a document - Microsoft Support
To collapse or expand all the headings in your document, right-click the heading and click Expand/Collapse > Expand All Headings or Collapse All...
Read more >
Collapse - Bootstrap
The collapse JavaScript plugin is used to show and hide content. Buttons or anchors are used as triggers that are mapped to specific...
Read more >
Nested collapsible fieldsets can't be expanded #3488 - GitHub
When nesting an object field with collapsible fieldsets inside an array field, the collapsed fieldsets can't be expanded (clicking doesn't do anything).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found