Skip to content

Commit 671ee23

Browse files
committed
Add keys to save/cancel buttons in modal footer array. Got rid of console warning
1 parent 8eb8677 commit 671ee23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/pages/HomePage/ModalSection.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ Utilize our detailed guidelines to confidently design excellent apps that fit ri
9797
isOpen={this.state.modalIsOpen}
9898
title={<span>Lightning Design System: Style with Ease</span>}
9999
footer={[
100-
<SLDSButton label='Cancel' variant='neutral' onClick={this.closeModal} />,
101-
<SLDSButton label='Save' variant='brand' onClick={this.handleSubmitModal} />
100+
<SLDSButton key='cancelBtn' label='Cancel' variant='neutral' onClick={this.closeModal} />,
101+
<SLDSButton key='saveBtn' label='Save' variant='brand' onClick={this.handleSubmitModal} />
102102
]}
103103
onRequestClose={this.closeModal}>
104104
{this.getModalContent()}

0 commit comments

Comments
 (0)