mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 22:32:40 +08:00
Fixes #11847: Fixed yii\widgets\Pjax to properly respond with partials when custom selector is used for container
This commit is contained in:
@ -173,7 +173,7 @@ class Pjax extends Widget
|
||||
{
|
||||
$headers = Yii::$app->getRequest()->getHeaders();
|
||||
|
||||
return $headers->get('X-Pjax') && $headers->get('X-Pjax-Container') === '#' . $this->options['id'];
|
||||
return $headers->get('X-Pjax') && explode(' ', $headers->get('X-Pjax-Container'))[0] === '#' . $this->options['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user