* [misc] disable open-url buttons in form step.

This commit is contained in:
sunhao
2024-09-04 17:31:41 +08:00
committed by 王于听
parent d585a8859b
commit d76a1c7e56
+2
View File
@@ -111,6 +111,7 @@ const stepPresenters =
const $form = getStepForm(scope, $target);
if(!$form || !$form.length) console.error(`[TUTORIAL] Cannot find form for step "${step.guide.name} > ${step.task.name} > ${step.title}"`, step);
$form.attr('zui-tutorial-step', step.id);
$form.find('.open-url,[data-back],[data-load],.ajax-submit').addClass('pointer-events-none');
step.$form = $form;
const $panel = $target.closest('.panel');
@@ -403,6 +404,7 @@ function activeNextStep(step)
formatStep(step);
if(config.debug) showLog('Active next step', step);
if(step.type === 'saveForm' && step.$form) step.$form.find('.open-url,[data-back],[data-load],.ajax-submit').addClass('pointer-events-none');
if(step.endUrl) openApp(step.endUrl, step.app);
destroyPopover(() =>
{