Files
react-native/Libraries
Abdelhafidh Belalia 112bfeecfa Switch order of onSelectionChange and onChange events on iOS (#35603)
Summary:
Switched order of onSelectionChange and onChange events on iOS

This was already fixed but for fabric only https://github.com/facebook/react-native/blob/main/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm#L36-L46

This PR is a complementary of https://github.com/facebook/react-native/commit/7b4889937ceb0eccdbb62a610b58525c29928be7

Fixes https://github.com/facebook/react-native/issues/28865

## Changelog

[IOS] [FIXED] - onSelectionChange() is fired before onChange() on multiline TextInput

Pull Request resolved: https://github.com/facebook/react-native/pull/35603

Test Plan:
Reproduce the minimal example provided here https://github.com/facebook/react-native/issues/28865
Verify that the events order is onChange then onSelectionChange with no duplicates

Reviewed By: cipolleschi

Differential Revision: D41947673

Pulled By: dmytrorykun

fbshipit-source-id: cf452a6101400b1b54295c83fa7735449d91e781
2023-01-19 09:50:38 +00:00
..
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2022-10-24 04:35:28 -07:00
2023-01-12 14:46:10 +00:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2022-10-28 11:53:51 -07:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2022-11-02 14:58:37 -07:00
2022-09-30 14:28:48 -07:00