-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
I think i found a bug in Page/TextTags field if used inside of a repeater and with default ajax loading enabled if one of the selectable pages contains a single quote ( ' ).
It's not possible to add or expand repeater items and a JS error is shown:
Uncaught SyntaxError: unexpected token: string literal
Steps to reproduce:
- Add template (for example "event")
- Add a page with that template and a title containing a single quote ( ' )
- Create a Page/TextTags field ("event" template as selectable pages)
- Create a repeater field, add the TextTags field and add it to whatever template
- Create a page and try to add a new repeater item
This only happens if ajax loading of repeater items is enabled.
Video - Working (Title without quote):
https://github.com/user-attachments/assets/b4f222c4-0b22-4415-81e0-eb44011e048c
Video - Not working (Title containing quote):
https://github.com/user-attachments/assets/2acabef2-a3ff-4b9e-b3ce-f4ec608415c5
ProcessWire Version 3.0.246
PHP Version 8.3