fix(picker): pass selected value to handler on dismiss (#20042)

fixes #20036
This commit is contained in:
Liam DeBeasi
2019-12-05 11:14:39 -05:00
committed by Brandy Carney
parent 656c356343
commit 6e0b9c4548

View File

@ -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;