Fixed bug with supportHover and skipped indices in option select ui handler

This commit is contained in:
Wlowscha 2025-01-06 22:41:35 +01:00
parent 125b8ba3df
commit fb6454bbb6
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ export default abstract class AbstractOptionSelectUiHandler extends UiHandler {
}
if (this.config?.supportHover) {
// handle hover code if the element supports hover-handlers and the option has the optional hover-handler set.
this.config?.options[this.fullCursor]?.onHover?.();
this.config?.options[this.unskippedIndices[this.fullCursor]]?.onHover?.();
}
}