Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add onSlidingComplete callbacks when sliders adjusted via a11y (#26600)
Summary: When sliders are adjusted via accessibility, no onSlidingComplete callback is generated. This causes problems for components which perform behavior in this callback, and means that such components don't behave properly when adjusted via accessibility. For example, if an app hosting a volume control slider only commits the volume change to the hardware on onSlidingComplete, it is impossible for a screen reader user to ever actually adjust the volume. Ensure that sliders call the onSlidingComplete callback after adjusted via accessibility. ## Changelog [General] [Fix] - Add onSlidingComplete callbacks when sliders adjusted via a11y. [CATEGORY] [TYPE] - Message Pull Request resolved: #26600 Test Plan: Prior to this change, using the RNTester slider example with a screen reader, the onSlidingComplete callback tests never shows any callbacks when the slider is adjusted. With this change applied, the callback test will show a number of callbacks corresponding to the number of times the slider was adjusted via the screen reader. Differential Revision: D17661157 Pulled By: cpojer fbshipit-source-id: a6eedef099c6c1b571b290c329059ac9b69b53dd
- Loading branch information