Skip to content

refactor(textinput): rename event payload properties for spelling and grammer callbacks - #2299

Merged
Saad Najmi (Saadnajmi) merged 5 commits into
microsoft:mainfrom
Saadnajmi:fabric/text-input-grammer-2
Jan 21, 2025
Merged

refactor(textinput): rename event payload properties for spelling and grammer callbacks#2299
Saad Najmi (Saadnajmi) merged 5 commits into
microsoft:mainfrom
Saadnajmi:fabric/text-input-grammer-2

Conversation

@Saadnajmi

@SaadnajmiSaad Najmi (Saadnajmi) commented Nov 30, 2024

Copy link
Copy Markdown
Collaborator

Note

#2290 must merge first

Summary:

macOS TextInput has some specific "Spelling And Grammar" properties that can be enabled or disabled by the user. We had events/callbacks to listen for these changes, with a simple "enabled" as the payload. While working on #2290 I realized it would make more sense to have seprate payloads for each event (spellCheckEnabled, etc). This is however, a breaking change, as it changes what is sent to JS.

Test Plan:

Testing...

BREAKING CHANGE: textinput spelling and grammar callbacks event changed

@Saadnajmi
Saad Najmi (Saadnajmi) requested a review from a team as a code ownerNovember 30, 2024 06:02
@SaadnajmiSaad Najmi (Saadnajmi) changed the title refactor(textinput): rename event payload properties for SettingChangeEventrefactor(textinput): rename event payload properties for spelling and grammer callbacksNov 30, 2024
Comment threadpackages/rn-tester/js/examples/TextInput/TextInputExample.ios.js Outdated
Comment threadpackages/react-native/Libraries/Components/TextInput/TextInput.d.ts Outdated
Comment threadpackages/rn-tester/js/examples/TextInput/TextInputExample.ios.js Outdated
Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Saadnajmi@tido64