Skip to content

PageTable 'reloaded' event not triggered #74

@Toutouwai

Description

@Toutouwai

Short description of the issue

InputfieldPageTable.js tries to trigger a 'reloaded' event for an element that doesn't exist:
https://github.com/processwire/processwire/blob/master/wire/modules/Inputfield/InputfieldPageTable/InputfieldPageTable.js#L18
$container is the element with class 'InputfieldPageTableContainer', which has no child elements with class 'Inputfield'.

Then an event handler is attached:
https://github.com/processwire/processwire/blob/master/wire/modules/Inputfield/InputfieldPageTable/InputfieldPageTable.js#L173-L175
But this never fires because no reloaded event is triggered for elements with class 'InputfieldPageTable'.

Optional: Suggestion for a possible fix

Perhaps line 18 should be:
$container.parents(".InputfieldPageTable").trigger('reloaded', ['InputfieldPageTable']);

Setup/Environment

  • ProcessWire version: 3.0.39

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