[RN] Fix regression handling ToolbarButton onPress
Introduced in https://github.com/jitsi/jitsi-meet/commit/96e83989a54974499decf6985fd17c8990984db8 as part of a refactor + feature.
This commit is contained in:
committed by
Любомир Маринов
parent
a0054ada08
commit
f6ccacb7df
@@ -37,7 +37,7 @@ class ToolbarButton extends AbstractToolbarButton {
|
||||
_renderButton(children) {
|
||||
const props = {};
|
||||
|
||||
'onClick' in this.props && (props.onPress = () => {
|
||||
'onClick' in this.props && (props.onPress = event => {
|
||||
const action = this.props.onClick(event);
|
||||
|
||||
if (action) {
|
||||
|
||||
Reference in New Issue
Block a user