From d7663212cf03415020302fb1783e6ff7c9da2229 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Tue, 21 Jun 2022 11:49:38 +0100 Subject: [PATCH] Revert "Chore: Fixed mobile dropbown regression" This reverts commit 671077e1bbe735edb07e0ceb4dbeca33207aedde. https://github.com/laurent22/joplin/pull/6306#issuecomment-1161575676 --- packages/app-mobile/components/Dropdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app-mobile/components/Dropdown.js b/packages/app-mobile/components/Dropdown.js index 3609a87e8..248a49dbe 100644 --- a/packages/app-mobile/components/Dropdown.js +++ b/packages/app-mobile/components/Dropdown.js @@ -86,7 +86,7 @@ class Dropdown extends React.Component { if (this.props.labelTransform && this.props.labelTransform === 'trim') headerLabel = headerLabel.trim(); const closeList = () => { - if (this.props.onClose) this.props.onClose(); + if (this.props.onClose()) this.props.onClose(); this.setState({ listVisible: false }); }; @@ -116,7 +116,7 @@ class Dropdown extends React.Component { onPress={() => { this.updateHeaderCoordinates(); this.setState({ listVisible: true }); - if (this.props.onOpen) this.props.onOpen(); + if (this.props.onOpen()) this.props.onOpen(); }} >