I am using lightning:overlayLibrary
to collect input from the user which will then be used in the parent component. The modal is simple: 1 lightning:select` in the body and a footer with "Select" and "Cancel" buttons. The only way I see to accomplish this is to:
- fire event from an onchange handler in the body component that sends the selected value
- handle change value event in footer
- fire event from onclick event on "Select" button which sends selected value
- handle said event in parent component
Is this the best way to do this? I tried messing with the closeCallback
parameter in the showCustomModal
function, but it appears that the attributes have already been wiped by that point (if you can access them at all).