1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Android: Fixes #12781: Fix editor becomes blank after dismissing search (#12818)

This commit is contained in:
Henry Heino
2025-07-30 02:53:12 -07:00
committed by GitHub
parent 5e70bce2c3
commit 012297d52a

View File

@@ -136,6 +136,13 @@ const useStyles = (theme: Theme) => {
justifyContent: 'center',
marginLeft: 10,
},
panelContainer: {
// Workaround for the editor disappearing when dismissing search on Android.
// See https://github.com/laurent22/joplin/issues/12781
//
// It may be possible to remove this line after upgrading to React Native's New Architecture.
borderColor: 'transparent',
},
});
}, [theme]);
};
@@ -366,7 +373,9 @@ export const SearchPanel = (props: SearchPanelProps) => {
return null;
}
return showingAdvanced ? advancedLayout : simpleLayout;
return <View style={styles.panelContainer}>
{showingAdvanced ? advancedLayout : simpleLayout}
</View>;
};
export default SearchPanel;