-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b23e68c
commit 1c32703
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1c32703
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @BernhardBaumrock - unfortunately it doesn't work at all when the assets are loaded like that. Could you please revert?
1c32703
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe it would work with a before hook?
1c32703
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @adrianbj I didn't try but I don't think it would make a difference. I think it would be worth understanding why renderReady() is never called on the checkboxes inputfield, but I don't have time for that atm, so I've reverted to always load assets.
1c32703
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BernhardBaumrock - I think this answers the question :)
The render hook works as expected.
1c32703
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah but using the render() hook would mean that it does not work on ajax loaded inputfields, no? Shouldn't every inputfield trigger renderReady() automatically?
1c32703
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://processwire.com/api/ref/inputfield/render-ready-hook/