File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -282,13 +282,13 @@ class OuterClickExample extends React.Component {
282
282
return (
283
283
<div ref={this.toggleContainer}>
284
284
<button onClick={this.onClickHandler}>Select an option</button>
285
- {this.state.isOpen ? (
285
+ {this.state.isOpen && (
286
286
<ul>
287
287
<li>Option 1</li>
288
288
<li>Option 2</li>
289
289
<li>Option 3</li>
290
290
</ul>
291
- ) : null }
291
+ )}
292
292
</div>
293
293
);
294
294
}
@@ -348,13 +348,13 @@ class BlurExample extends React.Component {
348
348
aria-expanded={this.state.isOpen}>
349
349
Select an option
350
350
</button>
351
- {this.state.isOpen ? (
351
+ {this.state.isOpen && (
352
352
<ul>
353
353
<li>Option 1</li>
354
354
<li>Option 2</li>
355
355
<li>Option 3</li>
356
356
</ul>
357
- ) : null }
357
+ )}
358
358
</div>
359
359
);
360
360
}
You can’t perform that action at this time.
0 commit comments