Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RNMobile] Fix crash when editing a component that uses RangeControl #27987

Merged
merged 10 commits into from
Jan 5, 2021
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ class BottomSheetRangeCell extends Component {
sliderValue: nextValue,
} );
onChange( nextValue );
onComplete( nextValue );
if ( onComplete ) {
onComplete( nextValue );
}
Comment on lines +74 to +76
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My first attempt was to pass the handler in the Spacer block but then I realised that it would require to add it in more blocks so a better solution was to make it optional.

}

render() {
Expand Down