Skip to content

Lister with JS paginator should still complete the initialization when scrolled (init/setOrder should not matter if called first or last) #1934

Open
@mvorisek

Description

@mvorisek

code to reproduce:

$crud = Crud::addTo($app);
$crud->setModel(new Country($app->db));
$crud->addJsPaginatorInContainer(20, 500 /* $containerHeight */);
$this->table->onRowClick(...);

the problem is addJsPaginatorInContainer terminates [1] the rendering and onRowClick is completely ignored when called from dynamic scroll AJAX

this problem poped out with #1932 fix where we unregister all events from original/non-AJAX load

[1] https://github.com/atk4/ui/blob/3.1.0/src/Lister.php#L122

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions