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.

'expanded' props is always false

See original GitHub issue

Is anyone having a problem with the expanded prop? It seems like it’s always being overwritten to false.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
psimyncommented, Nov 7, 2016

I think ORing it with activeItems could still make sense. But it might raise further questions. example:

<Accordion className="example" allowMultiple={false} activeItems=[0]>
    <AccordionItem title={'example_1'}>
        Hello, bug 1.
    </AccordionItem>
    <AccordionItem title={'example_2'} expanded>
        Hello, bug 2.
    </AccordionItem>
</Accordion>
0reactions
timsmith339commented, Oct 25, 2017

@daviferreira and @wawhal Thank you for fixing that, and wonderful package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does `this.props` always return a truthy value when passed to ...
It seems like it is treating this.props.bold as a truthy value rather than falsy, even though it is set to false in the...
Read more >
React Props Cheatsheet: 10 Patterns You Should Know
If you just provide the proper name on a component with nothing else, you pass a boolean value of true for that prop...
Read more >
Render Props - React
This is because the shallow prop comparison will always return false for new props, and each render in this case will generate a...
Read more >
Row Expand Props · react-bootstrap-table2
react-bootstrap-table2 supports the row expand feature. ... Default is false , if you want to have a expand indicator, give this prop as...
Read more >
aria-expanded - Accessibility - MDN Web Docs - Mozilla
The aria-expanded attribute is set on an element to indicate if a control is ... <button aria-expanded="false" aria-controls="widget1">Show ...
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