Open andrew-svirin opened 5 years ago
@AndriySvirin would you please make a pull request instead?
@samdark thanks a lot for answer, sorry i can not create pull request, i hope in future github will support simple pathces for propose changes. I using cweagans/composer-patches to apply patches.
I know that Pjax in Yii is not realized very well, exactly with nesting containers. Hope in next Yii3 version you will figure out with that, and i recommend to make some probes on old Yii2 versions to have some expirience.
Pjax is looks good for programming on PHP and code is readable until you need to make them nesting =) I think that Pjax widget should/could or unbind already binded events inside container response or avoid bind twice on same container event those are duplicates.
I have a problem with nested pjax. I need to specify directly pjax-container in code. Because my code is blowing and become unreadably by overriding native pjax behaviours.
bower-asset.jquery.pjax.js.patch.txt
yii2-pjax.patch.txt.txt
The main goal of these patches are: