fix(core): update
This commit is contained in:
		| @@ -14,6 +14,8 @@ import * as domtools from '@designestate/dees-domtools'; | ||||
| export interface IStep { | ||||
|   title: string; | ||||
|   content: TemplateResult; | ||||
|   validationFunc?: (stepper: DeesStepper, htmlElement: HTMLElement) => Promise<any>; | ||||
|   validationFuncCalled?: boolean; | ||||
| } | ||||
|  | ||||
| declare global { | ||||
| @@ -200,6 +202,10 @@ export class DeesStepper extends DeesElement { | ||||
|         easing: 'easeInOutQuint' | ||||
|       }, stepperContainer); | ||||
|     } | ||||
|     if (!this.selectedStep.validationFuncCalled && this.selectedStep.validationFunc) { | ||||
|       this.selectedStep.validationFuncCalled = true; | ||||
|       await this.selectedStep.validationFunc(this, selectedStepElement); | ||||
|     } | ||||
|     this.scroller.to(scrollPosition); | ||||
|   } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user