Closed kbond closed 2 years ago
I cannot recreate the issue with this library's test suite but can manually on a sample app using easyadmin-bundle (wide index, clicking "Add Entity" button). I'm wondering if easyadmin intercepts scrolling somehow?
Found the culprit: https://github.com/symfony/panther/issues/502
In your easyadmin DashboardController
, add the following to fix:
public function configureAssets(): Assets
{
return Assets::new()->addHtmlContentToHead('<style>html{scroll-behavior: auto !important;}</style>');
}
(or add to a custom style sheet)
Found the culprit: symfony/panther#502
In your easyadmin
DashboardController
, add the following to fix:public function configureAssets(): Assets { return Assets::new()->addHtmlContentToHead('<style>html{scroll-behavior: auto !important;}</style>'); }
(or add to a custom style sheet)
This works nicely for EasyAdmin; seems more reliable than the scrollTo method
Closing as I don't think there is any action required here.
Possible solution: