Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass the actual itemIndex to the customTextRenderer #1183

Merged
merged 1 commit into from
Nov 22, 2022
Merged

Pass the actual itemIndex to the customTextRenderer #1183

merged 1 commit into from
Nov 22, 2022

Conversation

paescuj
Copy link
Contributor

@paescuj paescuj commented Nov 21, 2022

While b8d41fc has solved the visual issue (馃帀), the itemIndex which is now passed to the custom text rendered no longer aligns with the one from textContent.
In my case, I'm using the custom text renderer to highlight parts of the text and the logic for this is comparing the index of the current rendered item with the index from textContent.
So I'd be happy if we could use the "actual" index for the renderer, as it used to be before.

@wojtekmaj wojtekmaj changed the title Pass the actual itemIndex to the custom text rendered Pass the actual itemIndex to the customTextRenderer Nov 22, 2022
@wojtekmaj wojtekmaj merged commit 194c0c6 into wojtekmaj:main Nov 22, 2022
@wojtekmaj
Copy link
Owner

Thanks!

@paescuj paescuj deleted the custom-text-renderer-index branch November 22, 2022 10:47
@paescuj
Copy link
Contributor Author

paescuj commented Nov 22, 2022

You're very welcome! 鉂わ笍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants