Skip to content

Commit

Permalink
Fix crash after make-event-props update
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Oct 9, 2021
1 parent 5371ef0 commit 960c05c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
6 changes: 3 additions & 3 deletions sample/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3849,9 +3849,9 @@ fsevents@~2.3.2:
linkType: hard

"make-event-props@npm:^1.1.0":
version: 1.2.0
resolution: "make-event-props@npm:1.2.0"
checksum: 3fe45b1d01ddda97b3a9621f7475fb8dbad6e4d4336b8bed2d7a05f89592f6f86e3dc1cefa1b0ccaad38e4315fb57fbb31b3b44a5349ab63d777ea06d4fc65b6
version: 1.3.0
resolution: "make-event-props@npm:1.3.0"
checksum: 92b8845f63a25fc7da80ed2a5cc5055fba30066b83ad88e4f8c090cd99ae53a13297156df0bd0487d340507994362deaed5580266f73dfe142dc46163b5b8a6a
languageName: node
linkType: hard

Expand Down
5 changes: 4 additions & 1 deletion src/TimePicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,12 @@ export default class TimePicker extends PureComponent {
}

render() {
const { eventProps } = this;
const { className, disabled } = this.props;
const { isOpen } = this.state;

const { onChange, ...eventPropsWithoutOnChange } = eventProps;

return (
<div
className={mergeClassNames(
Expand All @@ -265,7 +268,7 @@ export default class TimePicker extends PureComponent {
`${baseClassName}--${disabled ? 'disabled' : 'enabled'}`,
className,
)}
{...this.eventProps}
{...eventPropsWithoutOnChange}
onFocus={this.onFocus}
ref={(ref) => {
if (!ref) {
Expand Down
6 changes: 3 additions & 3 deletions test/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4431,9 +4431,9 @@ fsevents@~2.3.2:
linkType: hard

"make-event-props@npm:^1.1.0":
version: 1.2.0
resolution: "make-event-props@npm:1.2.0"
checksum: 3fe45b1d01ddda97b3a9621f7475fb8dbad6e4d4336b8bed2d7a05f89592f6f86e3dc1cefa1b0ccaad38e4315fb57fbb31b3b44a5349ab63d777ea06d4fc65b6
version: 1.3.0
resolution: "make-event-props@npm:1.3.0"
checksum: 92b8845f63a25fc7da80ed2a5cc5055fba30066b83ad88e4f8c090cd99ae53a13297156df0bd0487d340507994362deaed5580266f73dfe142dc46163b5b8a6a
languageName: node
linkType: hard

Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5078,9 +5078,9 @@ __metadata:
linkType: hard

"make-event-props@npm:^1.1.0":
version: 1.2.0
resolution: "make-event-props@npm:1.2.0"
checksum: 3fe45b1d01ddda97b3a9621f7475fb8dbad6e4d4336b8bed2d7a05f89592f6f86e3dc1cefa1b0ccaad38e4315fb57fbb31b3b44a5349ab63d777ea06d4fc65b6
version: 1.3.0
resolution: "make-event-props@npm:1.3.0"
checksum: 92b8845f63a25fc7da80ed2a5cc5055fba30066b83ad88e4f8c090cd99ae53a13297156df0bd0487d340507994362deaed5580266f73dfe142dc46163b5b8a6a
languageName: node
linkType: hard

Expand Down

0 comments on commit 960c05c

Please sign in to comment.