Cant pass value of the stepper to the custom function and cant save the value of the stepper component to a global variable.