mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(picker): pass selected value to handler on dismiss (#20042)
fixes #20036
This commit is contained in:

committed by
Brandy Carney

parent
656c356343
commit
6e0b9c4548
@ -179,7 +179,7 @@ export class Picker implements ComponentInterface, OverlayInterface {
|
||||
if (button) {
|
||||
// a handler has been provided, execute it
|
||||
// pass the handler the values from the inputs
|
||||
const rtn = await safeCall(button.handler);
|
||||
const rtn = await safeCall(button.handler, this.getSelected());
|
||||
if (rtn === false) {
|
||||
// if the return value of the handler is false then do not dismiss
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user