Skip to content

Commit

Permalink
fix clear input once rhn closed
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanDylann committed Dec 6, 2023
1 parent 4a24eb1 commit 7142a45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/Navigation/AppNavigator/AuthScreens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import type {AuthScreensParamList} from '@navigation/types';
import DemoSetupPage from '@pages/DemoSetupPage';
import NotFoundPage from '@pages/ErrorPage/NotFoundPage';
import DesktopSignInRedirectPage from '@pages/signin/DesktopSignInRedirectPage';
import SearchInputManager from '@pages/workspace/SearchInputManager';
import useThemeStyles from '@styles/useThemeStyles';
import * as App from '@userActions/App';
import * as Download from '@userActions/Download';
Expand Down Expand Up @@ -123,6 +124,8 @@ const modalScreenListeners = {
Modal.setModalVisibility(true);
},
beforeRemove: () => {
// Clear search input (WorkspaceMembersPage) when modal is closed
SearchInputManager.searchInput = '';
Modal.setModalVisibility(false);
},
};
Expand Down

0 comments on commit 7142a45

Please sign in to comment.