We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44f6e07 commit 376485eCopy full SHA for 376485e
1 file changed
src/Panel.jsx
@@ -84,9 +84,10 @@ var Panel = React.createClass({
84
var props = {key: index};
85
86
// Arbitrarily assign the body ref to the first element. We can't wrap
87
- // all body elements in a single DOM node anyway, because the fill
88
- // styling depends on the table or list group element being a direct
89
- // descendant of the panel.
+ // all body elements in a single DOM node, because the selector for the
+ // panel-filling behavior in Bootstrap looks like ".panel>.list-group",
+ // which will not work if there are any DOM nodes between the ".panel"
90
+ // element and the ".list-group" element.
91
if (index == 0) {
92
props.ref = 'body';
93
}
0 commit comments