mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-26 18:58:21 +02:00
Revert "Chore: Fixed mobile dropbown regression"
This reverts commit 671077e1bbe735edb07e0ceb4dbeca33207aedde. 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();
|
if (this.props.labelTransform && this.props.labelTransform === 'trim') headerLabel = headerLabel.trim();
|
||||||
|
|
||||||
const closeList = () => {
|
const closeList = () => {
|
||||||
if (this.props.onClose) this.props.onClose();
|
if (this.props.onClose()) this.props.onClose();
|
||||||
this.setState({ listVisible: false });
|
this.setState({ listVisible: false });
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ class Dropdown extends React.Component {
|
|||||||
onPress={() => {
|
onPress={() => {
|
||||||
this.updateHeaderCoordinates();
|
this.updateHeaderCoordinates();
|
||||||
this.setState({ listVisible: true });
|
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}>
|
<Text ellipsizeMode="tail" numberOfLines={1} style={headerStyle}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user