Skip to content

Commit 877fd6a

Browse files
author
Protik Biswas
committed
adding format change
1 parent 73dc3d1 commit 877fd6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vnext/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,10 +545,10 @@ void WindowsTextInputComponentView::HandleCommand(
545545
std::optional<winrt::hstring> text;
546546

547547
winrt::Microsoft::ReactNative::ReadArgs(args.CommandArgs(), eventCount, text, begin, end);
548-
548+
549549
// Standard synchronization check - only accept current or future events
550550
bool isCurrentEvent = eventCount >= m_nativeEventCount;
551-
551+
552552
// Special case: Allow setValue('') if it's responding to the exact onSubmitEditing event
553553
// This is safe because clearing text doesn't depend on intermediate state
554554
bool isSubmitClearResponse = false;
@@ -976,7 +976,7 @@ void WindowsTextInputComponentView::OnCharacterReceived(
976976
facebook::react::WindowsTextInputEventEmitter::OnSubmitEditing onSubmitEditingArgs;
977977
onSubmitEditingArgs.text = GetTextFromRichEdit();
978978
onSubmitEditingArgs.eventCount = ++m_nativeEventCount;
979-
m_lastSubmitEventCount = m_nativeEventCount; // Track this submit event
979+
m_lastSubmitEventCount = m_nativeEventCount; // Track this submit event
980980
emitter->onSubmitEditing(onSubmitEditingArgs);
981981
}
982982

0 commit comments

Comments
 (0)