Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Dec 10, 2024
1 parent 4e1cc08 commit 3774319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/setShouldShowComposeInputKeyboardAware/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import * as Composer from '@userActions/Composer';
import type SetShouldShowComposeInputKeyboardAware from './types';

const setShouldShowComposeInputKeyboardAware: SetShouldShowComposeInputKeyboardAware = (shouldShow) => {
// When the edit composer loses focus, we want to show the main composer.
// We want to show the main composer when the edit composer loses focus.
// If it loses focus due to a pressable being pressed, the press event might not be captured.
// To address this, we delay showing the main composer to allow the press event to complete.
// To address this, we delay showing the main composer to allow the press event to be completed.
setTimeout(() => {
Composer.setShouldShowComposeInput(shouldShow);
}, 0);
Expand Down

0 comments on commit 3774319

Please sign in to comment.