Skip to content

Commit

Permalink
fix: added key prop for datePicker options
Browse files Browse the repository at this point in the history
  • Loading branch information
alexunique0519 committed Sep 21, 2022
1 parent a83654d commit 0faa78f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/components/DatePicker/DatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ export function DatePicker(props) {
onChange={onMonthChange}
className="ds-w-165px ds-py-5px ds-flex ds-px-14px ds-date-text ds-border-1.5 ds-border-multi-neutrals-grey85a ds-rounded"
>
{monthValues.map((mv) => (
<option value={mv}>{language.datePicker.months[mv]}</option>
{monthValues.map((mv, index) => (
<option value={mv} key={index}>
{language.datePicker.months[mv]}
</option>
))}
</select>
<div className="dropdownPos">
Expand Down
2 changes: 0 additions & 2 deletions src/components/DatePicker/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: transparent;
}

.dropdownPos {
position: absolute;
left: 136px;
top: 48px;
z-index: -1;
}

input::-webkit-outer-spin-button,
Expand Down

0 comments on commit 0faa78f

Please sign in to comment.