Skip to content

Commit 42c7601

Browse files
authored
Merge pull request #128 from NiklasKnoll99/master
Fix OpeningTimes component focus issue.
2 parents aa5fead + 24806a6 commit 42c7601

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/react-chayns-openingtimes/component/Day.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class Day extends Component {
99
super(props);
1010

1111
this.onDayActivation = this.onDayActivation.bind(this);
12+
this.key = Math.random().toString();
1213
}
1314

1415
onDayActivation(status) {
@@ -58,7 +59,7 @@ class Day extends Component {
5859
/>
5960
) : timeSpans.map((t, index) => (
6061
<TimeSpan
61-
key={t.start}
62+
key={this.key}
6263
start={t.start}
6364
end={t.end}
6465
disabled={isDisabled}

webpack/dev.babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ export default (env) => {
9595
})
9696
]
9797
};
98-
};
98+
};

0 commit comments

Comments
 (0)