Skip to content

Js error when toggling fields with visibility option: Open when populated + Closed when blank + Load only when opened (Ajax)  #1623

@q107

Description

@q107

Short description of the issue

Non empty Inputfields with visibility option set to "Open when populated + Closed when blank + Load only when opened (Ajax)" won't open again after being manually closed.

Expected behavior

Toggling open/close button should open or close non empty inputfields without js errors.

Actual behavior

Closing non empty inputfield with "Open when populated + Closed when blank + Load only when opened (Ajax)" visibility option will render it permanently closed. Browser console shows "JqueryCore.js?v=183:2 Uncaught RangeError: Maximum call stack size exceeded" when attempting to toggle it open again.
Only resolution is to refresh the page.

Optional: Screenshots/Links that demonstrate the issue

error2

Steps to reproduce the issue

  1. Edit field (let's say: Title).
  2. Change field's visibility option (Input tab->Visibility) to "Open when populated + Closed when blank + Load only when opened (Ajax)".
  3. Open page with said field (if empty, fill it up and save the page).
  4. Now close the field and try to open it again.

Setup/Environment

  • ProcessWire version: from at least 3.0.123 up to the most recent master 200 / dev 205

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