Skip to content

Commit 233da99

Browse files
authored
Merge pull request #1888 from usablica/fix-hint-element-position
fix(hint): pass the correct targetElement to align position
2 parents 8949fad + d1dccdf commit 233da99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/hint.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,11 @@ export async function addHints() {
189189
hint.appendChild(hintPulse);
190190
hint.setAttribute("data-step", i.toString());
191191

192+
const targetElement = item.element;
192193
item.element = hint;
193194

194195
// align the hint position
195-
alignHintPosition.call(this, item.hintPosition, hint, item.element);
196+
alignHintPosition.call(this, item.hintPosition, hint, targetElement);
196197

197198
hintsWrapper.appendChild(hint);
198199
});

0 commit comments

Comments
 (0)