mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-14 18:27:44 +02:00
Revert "Chore: Fixed mobile dropbown regression"
This reverts commit 671077e1bb
.
https://github.com/laurent22/joplin/pull/6306#issuecomment-1161575676
This commit is contained in:
parent
429a49b07e
commit
d7663212cf
@ -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();
|
||||
}}
|
||||
>
|
||||
<Text ellipsizeMode="tail" numberOfLines={1} style={headerStyle}>
|
||||
|
Loading…
Reference in New Issue
Block a user