Pass data and role to the dismiss based on button click or backdrop

fix(picker): pass data and role to the dismiss based on button click or backdrop (#19787)
Pass data and role to the dismiss based on button click or backdropfixpass data role dismiss based button

Committed by brandyscarney

commit message
fix(picker): pass data and role to the dismiss based on button click or backdrop (#19787)

- Pass the button role on dismiss of the picker (on button click or backdrop tap)
- Pass the selected values in the data on dismiss ONLY if the dismiss role is not "cancel" or "backdrop"
- Call the cancel handler when dismissing if the role is "cancel" or "backdrop"
 
Fixes #18454

Editor assessment

The subject precisely states the new contract: dismiss data and role are passed according to whether a button or the backdrop triggered it. The body then teaches with a three-item list: the button role is forwarded, selected values are included only when the role is not cancel or backdrop, and the cancel handler fires in those cases. That is behavior documentation a consumer can act on, not a diff restatement. fix(picker) is accurate, the scope exact, and 'Fixes #18454' well-formed. An exemplar of a behavioral-fix message.

Browse categories

More fix examples · Back to search