-
-
Notifications
You must be signed in to change notification settings - Fork 903
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't find Page object in customTextRenderer layer prop on v6.0.3 (works on v5.7.2) #1190
Comments
This was never documented/intended. |
Additionally, this has been announced as a breaking change in v6.0.0 (#944). If you still need to access the current page you can easily control and track it via |
Could you explain more about it? How can I get pageIndex in customTextRenderer? |
Yeah, I actually don't see an easy way to do this unless you inline |
Pretty simple:
But of course, it is more convenient if it is available out of the box 😄 So, thanks @wojtekmaj for 34fbf09! |
Thank you so much for the update!! May I ask when will this change be released? |
@wojtekmaj - Thank you for making the change! I also wondering when the new release will be published :) |
Before you start - checklist
Description
On v6.0.3, customTextRenderer no longer provide Page object in layer prop. Is there any reason for removing it? Currently we are using _pageIndex to do a cross div search, without it we couldn't tell which page the text is on.
Steps to reproduce
console log the layer prop of customTextRenderer function.
Expected behavior
get same object as in v5.7.2
Actual behavior
Page object no longer in it
Additional information
No response
Environment
The text was updated successfully, but these errors were encountered: