Inhibit Room List keyboard pass-thru when the search beta is enabled (#7752)

This commit is contained in:
Michael Telatynski 2022-02-08 18:31:37 +00:00 committed by GitHub
parent 479e7e9a25
commit 4394c162db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -96,7 +96,10 @@ export default class RoomSearch extends React.PureComponent<IProps, IState> {
private onSpotlightChange = () => {
const spotlightBetaEnabled = SettingsStore.getValue("feature_spotlight");
if (this.state.spotlightBetaEnabled !== spotlightBetaEnabled) {
this.setState({ spotlightBetaEnabled });
this.setState({
spotlightBetaEnabled,
query: "",
});
}
// in case the user was in settings at the 5-minute mark, dismiss the toast
ToastStore.sharedInstance().dismissToast("BETA_SPOTLIGHT_TOAST");