Skip to content

Commit

Permalink
fix(calendar): 纯日期 key 导致下月 key 重复,样式更新失败 close #1024
Browse files Browse the repository at this point in the history
  • Loading branch information
Garfield550 committed Apr 22, 2020
1 parent 7b22709 commit 9fb3515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/calendar/ui/date-list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export default class AtCalendarList extends Taro.Component<Props> {

return (
<View className='at-calendar__list flex'>
{list.map((item: Calendar.Item) => (
{list.map((item: Calendar.Item, index: number) => (
<View
key={`list-item-${item.value}`}
key={`list-item-${item.value}-${index}`}
onClick={this.handleClick.bind(this, item)}
onLongPress={this.handleLongClick.bind(this, item)}
className={classnames(
Expand Down

0 comments on commit 9fb3515

Please sign in to comment.