* [misc] only handle first step target.

This commit is contained in:
sunhao
2024-09-04 17:31:41 +08:00
committed by 王于听
parent 4b3318eab5
commit f96a4cb305
+1
View File
@@ -235,6 +235,7 @@ function highlightStepTarget($target, step, popoverOptions)
ensureStepScope(step, (scope) =>
{
if(typeof $target === 'function') $target = $target(scope);
$target = $target.first();
if(!$target.length) return console.error(`[TUTORIAL] Cannot find target for step "${step.guide.title || step.guide.name} > ${step.task.title || step.task.name} > ${step.title}"`, step);
popoverOptions = $.extend(
{